Dynamically renaming batch prints to PDF.

C

Carter Harvey

Currently using VB to print batches of reports to Acrobat
Distiller. Only problem is that the resulting PDF's are
automatically named the report name. The pdf's have to be
moved into a separate folder before the batch is run for
the next client, or the pdf's will be overwritten. I'd
like to be able to dynamically name the reports as they're
printed so the whole batch can loop for each client.

If the Caption is defined in the report, the PDF will use
the Caption. I've tried setting the report caption OnOpen:
me.caption = [customerID]&"Report Section"

While this works for Print Preview, when printing using
openreport, the caption is not set. However, other
commands in the OnOpen execute properly..

Why does the above expression not get evaluated before
printing while other commands do? Is there another way to
dynamically set the caption before print?

Thanks for any help,
Carter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top