Solved

Pass argument to acrobat

Posted on 2002-04-17
9
167 Views
Last Modified: 2010-05-18
Hello,

I am printing Crystal Reports using VB6 to a .pdf file.  Getting the report to print is not a problem.  The problem I am having is that it prints several reports a day and each time it prints one a box comes up asking for a file name to save it as.  I would like to be able to pass the filename to adobe so it can run unattended.  Thanks in advance.

In other words, when a .rpt file is "printed" to a .pdf file, how do I pass the filename that I want it to be saved as?


0
Comment
Question by:adsttu
9 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6948289
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6948291
Sorry, gorget about that link.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6948305
0
 

Author Comment

by:adsttu
ID: 6948325
I'm not exactly printing pdf files.  What I'm doing is printing Crystal Report (.rpt) files to a pdf file.  When you set up Acrobat you can set up a virtual printer that appears in the printer list but actually just creates a pdf file from other formats.  So, I'm actually converting a Crystal Report file to a pdf file.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6948327
http://www.brookhouse.co.uk/adobe/batch/
It appears like there is not a direct way to batch print files without a third party utility.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6948344
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 200 total points
ID: 6948586
0
 
LVL 10

Expert Comment

by:arana
ID: 6948749
your virtual printer properties must have some default filename on it. this has not to do with crystal reports, or VB, it has to do with passsing a parameter to the printer driver, or setting a default printer driver filename or setting a default one.
0
 

Author Comment

by:adsttu
ID: 6948869
Thank you mlmcc, the document you refered me to solved the problem completely.  I looked a hundered times on Crystal's site and couldn't find it.  Sometimes it just takes a fresh pair of eyes I quess.

I appreciate all of the comments.

Thanks,
Aaron
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now