G
gnosbush
I am working on a database that resides on a shared network drive.
About ten individuals, all on different computers, will use this
database. One of the reports needs to be printed in a PDF. It is not
feasible to have the user print the report as the report will create
200 separate PDF files. By using previous posts, I have figured out
that I can install Adobe's PostScript Printer Driver, print to that,
and then run Ghost Script afterwards on the created PostScript file to
create the PDF. In order for each user to do this, I need to have the
PostScript printer driver installed on all computers accessing the
database. I can have each individual run the setup to install the
drivers, but can someone tell me if I can program the following
through VBA to get the driver setup correctly without having the user
do it? When the driver installs, it creates a local printer called
"Generic PostScript Printer".
1. Can I change the port in VBA for "Generic PostScript Printer" to a
filename as is required for Ghost Script? I would prefer to do this
automatically rather than try to explain to each user how to do it.
2. Each time the report is printed, how can I check the port for the
"Generic PostScript Printer" and verify that it is correct? I tried
using application.printers and getting the port but this returns
DOT4_001 when it really should be returning C:\Report.ps (I manually
programmed this port through control panel, printers).
Thank you in advance for your help!
Grant
About ten individuals, all on different computers, will use this
database. One of the reports needs to be printed in a PDF. It is not
feasible to have the user print the report as the report will create
200 separate PDF files. By using previous posts, I have figured out
that I can install Adobe's PostScript Printer Driver, print to that,
and then run Ghost Script afterwards on the created PostScript file to
create the PDF. In order for each user to do this, I need to have the
PostScript printer driver installed on all computers accessing the
database. I can have each individual run the setup to install the
drivers, but can someone tell me if I can program the following
through VBA to get the driver setup correctly without having the user
do it? When the driver installs, it creates a local printer called
"Generic PostScript Printer".
1. Can I change the port in VBA for "Generic PostScript Printer" to a
filename as is required for Ghost Script? I would prefer to do this
automatically rather than try to explain to each user how to do it.
2. Each time the report is printed, how can I check the port for the
"Generic PostScript Printer" and verify that it is correct? I tried
using application.printers and getting the port but this returns
DOT4_001 when it really should be returning C:\Report.ps (I manually
programmed this port through control panel, printers).
Thank you in advance for your help!
Grant