Link to home
Start Free TrialLog in
Avatar of tsirakua
tsirakua

asked on

Datawindow to PDF using Acrobat Distiller without the dialog box to save the file

Hi!!

How to sava a dw to a pdf file using the Acrobat distiller?
I have a datawindow and I use the function PrintSetPrinter("Adobe PDF") to use the pdf writer, then when I call the function dw_1.print() appears the dialog box from Acrobat to the user selects the path and the file name, but I want that the pdf be generated in a specified path and with a name gived for the application without the user knows.
In few words, I want to show the datawindow in the screen and when the user click on a button to print that the pdf been created in a specified path with a file name gived for the application and that the dialog box to save the file don't appears.
For your help thanks!!!
Tsirakua
Avatar of sajuks
sajuks

this should help

integer li
dw_1.object.DataWindow.Export.PDF.Method = Distill!
 li = dw_1.SaveAs("c:\dw.pdf", PDF!, true )

Avatar of tsirakua

ASKER

Error: Illegal enumerated constant: Distill!

Why???

Thanks
Which version of pb are you using.
Is adobe distiller installed
PB 9.0 Beta3
Acrobat Professional 6.0 with the distiller instaled
Maybe because is the beta version of PB I'll try to get the PB 9.0 no beta
Thanks, I'll tell you if is the error for that
ASKER CERTIFIED SOLUTION
Avatar of sajuks
sajuks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you
Why a 'C'. Please review the grade.
I'm sorry, how can I change the grade?