Print to PDF - Bypass Save as Dialog

karmahum

Registered User.
Local time
Today, 19:26
Joined
Apr 29, 2002
Messages
53
I am attempting to save a report as a pdf. I have the code working that changes the default printer the Adobe Writer and then prints the report. However, I would like to bypass the Save As dialog box in Adobe Writer and have the report print (save to a specific location).

I understand that in Windows 95/98 this is accomplished by adding the following to the win.ini file:

[Acrobat PDFWriter]
PDFFilename=C:\(path)\pdftemp.doc
bDocInfo=0

However, I am working in Windows 2000. I believe that I need to make similar changes to the registry. I do not know how to do this.

Any help would be greatly appreciated.

Thanks.
 
Hello,

You need to look at the registry keys for \\PdfWriter or whatever the folder where you can find PDF Reader Writer. You will have to locate what registry key is responsible for poping the message box up. You also will need to determine what values (HEX, Binary) turn on (open) or turn off (close) this save dialog box. We use pdfFactory pro and as a registry key I was able to determine that a key called "ShowDlg" was responsible for the popup. The value 4 was to have it turn on and the value 0 was to have it turn off. Once I made this change everything workeed out.

Good luck,
Jon
 
Thanks Jon...A bit of follow-up.

Jon,

Thanks for the reply. After a long delay I am finally getting back to this.

I took your advice and looked into PDF Factory. I think it will work for me.

I do have a follow-up question. I want to be able to print from Access and define the PDF file name, not have it assigned.

How do you accomplish this using PDF Factory?

Thanks,
Sean
 

Users who are viewing this thread

Back
Top Bottom