PDF printing - setting FN

I am using QuickReports.

I set the printer to the Adobe distiller, and then print.

But I need to be able to set the filename that the distiller will use, instead of the default dialog appearing to prompt for a filename.

Does anyone know how to do this ?

Thanks in advance,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Note: If you're not prompted for a filename and location, configure Acrobat Distiller to prompt you for a filename and location before saving:
-- In Acrobat Distiller 4.x, choose File > Preferences, deselect Ask For PDF File Destination, and then click OK.
-- In Acrobat Distiller 5.x, do the following:
1. Choose Start > Settings > Printers (Windows 2000) or Start > Settings > Printers and Faxes (Windows XP), right-click the Distiller printer, and choose Printing Preferences.
2. Click the Adobe PDF Settings tab, deselect Prompt for the PDF Filename, and then click OK.
jturpinAuthor Commented:

Thanks for the try, but that is not what I want to know.

I am trying to prevent the distiller prompting me for the filename. (I understand the checkbox setting)

Do you know how I can programatically set the filename so the dialog box does not show?

I don't have the distiller on this machine right now.  However, the setting is saved somewhere (most likely in the registry).  Have you tried to run RegMon, manually set the distiller options, and find out where in the registry the changes are?  That would be how I would approach it.  You could then write to the registry before printing to the distiller and write it back to the prev value after printing.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jturpinAuthor Commented:

Thanks again for the info. I downloaded RegMon, filtered out everything that didn't have Adobe in it.

However, the filename was never read, or written.

do you have any other suggestions?

Thanks again for the help.
Are you trying to always Distill to the same [filename].pdf?  Or are you trying to set the [filename] in your application and then launching the Distiller process with the [filename] input in the application?

I'm not familiar with Quick Reports, but I solved a similar issue I had with the Acrobat Scan function and its launch of scanner dialogs.  

The technique is to write a monitoring function (or application) that, on a timer, uses API functions to retrieve a handle to the Window of the dialog that pops up, then programtically set it to be the Active Window and set focus to the dialog's controls, then Send messages to populate the filename text box and click the Save button.

I also tried setting the Distiller file properties, but the results aren't desireable.  If Quick Reports can be VB scripted, you could use the SendKeys() function to submit answers to the prompts.

I wasn't speaking of looking for where the filename is written as I don't believe the filename will be written to the registry.  I was speaking of where the programmatic setting for "Ask For PDF File Destination" was located in the registry.
jturpinAuthor Commented:
I am generating multiple reports based on several datasets. Reports are grouped by worker. I need to be able to write each grouping out to a specific directory ready for the worker to collect.

So just before I call the distiller I would like to set the destination filename so that the dialog box does not need to be manualy updated for each worker.


Unfortunately, I do not know how to do this in QuickReports.  However, you might look at the following:


I can give you example links for how to do it using VBA, and other languages if this is would help you.
jturpinAuthor Commented:

Yes please give me those links.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.