Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Adobe pdf files

Status
Not open for further replies.

JoelFromTampa

Programmer
Dec 6, 2004
3
US
I am working on a PowerBuilder 11.5 application that will automatically with the push of a button, create several (over 100) Adobe reports in with specific file names and in specific directories. What is the best way to do that?

I am using Adobe Acrobat 9 Standard.
 
Code:
PrintSetPrinter ("Adobe PDF") // Picks this printer but does not change default printer
dw_test.Object.DataWindow.Print.DocumentName = "theFileNameIs"
dw_test.print()
then move the file where I want
 
I am sure the "Best" Answer would be to use Adobe Distiller but that seems like overkill and I am lazy.

This does everything I want except... it is not possible to specify the destination directory.

I create the .pdf files in the default location then move them to my desired directories.
 
Have you tried explicitly declaring the path, rather than just the filename?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top