?
Solved

PDF printing - setting FN

Posted on 2003-03-06
10
Medium Priority
?
279 Views
Last Modified: 2010-04-17
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,

John.
0
Comment
Question by:jturpin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 16

Expert Comment

by:twalgrave
ID: 8085271
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.
0
 
LVL 1

Author Comment

by:jturpin
ID: 8088253

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?



John.
0
 
LVL 16

Expert Comment

by:twalgrave
ID: 8089409
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:jturpin
ID: 8094100

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.
0
 

Expert Comment

by:AppNetSys
ID: 8094642
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.

0
 
LVL 16

Expert Comment

by:twalgrave
ID: 8094734
jturpin,
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.
0
 
LVL 1

Author Comment

by:jturpin
ID: 8095082
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.

Thanks,

John.
0
 
LVL 16

Expert Comment

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

http://www.llion.net/llpdflibtestimonial.php

I can give you example links for how to do it using VBA, and other languages if this is would help you.
0
 
LVL 1

Author Comment

by:jturpin
ID: 8095122

Yes please give me those links.

Thanks.
0
 
LVL 16

Accepted Solution

by:
twalgrave earned 800 total points
ID: 8095138
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question