Print Page | Close Window

doc or excel to pdf

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=393
Printed Date: 25 May 24 at 2:40PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: doc or excel to pdf
Posted By: kaliand
Subject: doc or excel to pdf
Date 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!



Replies:
Posted By: Ingo
Date Posted: 17 Apr 06 at 3:33PM
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


Posted By: kaliand
Date Posted: 17 Apr 06 at 4:44PM
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!


Posted By: Ingo
Date Posted: 18 Apr 06 at 2:05AM
Hi!
Sorry. This isn't possible... i think.
What about using the ghostscript-dll?
Best regards,
Ingo



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk