Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
doc or excel to pdf |
Post Reply ![]() |
Author | |
kaliand ![]() Beginner ![]() Joined: 14 Apr 06 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 16 Apr 06 at 6:12PM |
Hi!
is it possible to create a pdf with dll from a microsoft officce word or excel? like distiller does? regards! |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
No, the direct way isn't possible. I've found a vb-sample: Public Sub Save_SaveAs() ' ********************************************** ' This macro replaces the default functionality ' of the FileSaveAs command. ' ********************************************** Dim myDialog As Dialog Set myDialog = Dialogs(wdDialogFileSaveAs) ' Display the Dialog and save the document. If myDialog.Display Then ActiveDocument.SaveAs myDialog.Name, myDialog.Format, _ myDialog.LockAnnot, myDialog.Password, myDialog.AddToMru, _ myDialog.WritePassword, myDialog.RecommendReadOnly, _ myDialog.EmbedFonts, myDialog.NativePictureFormat, _ myDialog.FormsData, myDialog.SaveAsAOCELetter End If End Sub With this one you can use the save_as-function... choose "pdf"... this should work. Best regards, Ingo |
|
![]() |
|
kaliand ![]() Beginner ![]() Joined: 14 Apr 06 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
hi ingo and thanks,
Very interesting the sample above and sure it will be usefull to me, but maybe my question was not well expressed, becouse i'm looking the way to create a pdf from a postscript "ps", like i do with distiller, for exemple : ******************** Dim w as new word.application Dim pdf as new Distiller6 w.Documents.open "Mydocument" w.visible = false w.printout printtofile=true,destination"Mydocument.ps" w.ActiveDocument.close w.quit set w = nothing pdf.FileToPdf"MyDocument.ps","MyDocument.pdf","JobObtions" set pdf= nothing *********************** So i would like to do something similar with the iSED.dll that i bought because it seems to me they did a great job with this llibary and i'd like to use it as much as it possible. Best regards! |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
Sorry. This isn't possible... i think. What about using the ghostscript-dll? Best regards, Ingo |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store