Prj07: print to pdf programmatically?

C

Curmudgeon

I am writing a proc to print a series of mpp's to pdf
programmatically. It's not clear to me how to specify the pdf printer
driver (presumably using FilePrintSetup?) and then how to print to a
specified path and filename (would this use FilePrint? If so, how do I
pass in the path info?).

I'm away from my workstation til Monday and don't recall what my pdf
driver is - do I use the statement

FilePrintSetup "[name of pdf driver as in Windows print dialog]:"

or is there a different way to specify the pdf driver?

Any hints would be appreciated.

Thanks
 
M

Mike Glen

Hi Curmudgeon,

Try posting on the developer newsgroup as this one is closing down. Please see FAQ Item: 24. Project Newsgroups. FAQs, companion products and other useful Project information can be seen at this web address: http://project.mvps.org/faqs.htm .

Mike Glen
Project MVP



I am writing a proc to print a series of mpp's to pdf
programmatically. It's not clear to me how to specify the pdf printer
driver (presumably using FilePrintSetup?) and then how to print to a
specified path and filename (would this use FilePrint? If so, how do I
pass in the path info?).

I'm away from my workstation til Monday and don't recall what my pdf
driver is - do I use the statement

FilePrintSetup "[name of pdf driver as in Windows print dialog]:"

or is there a different way to specify the pdf driver?

Any hints would be appreciated.

Thanks
 
C

Curmudgeon

Hi Curmudgeon,

Try posting on the developer newsgroup as this one is closing down.  Please see FAQ Item: 24. Project Newsgroups. FAQs, companion products and other useful Project information can be seen at this web address:  http://project.mvps.org/faqs.htm.

Mike Glen
Project MVP

  I am writing a proc to print a series of mpp's to pdf
  programmatically. It's not clear to me how to specify the pdf printer
  driver (presumably using FilePrintSetup?) and then how to print to a
  specified path and filename (would this use FilePrint? If so, how do I
  pass in the path info?).

  I'm away from my workstation til Monday and don't recall what my pdf
  driver is - do I use the statement

  FilePrintSetup "[name of pdf driver as in Windows print dialog]:"

  or is there a different way to specify the pdf driver?

  Any hints would be appreciated.

  Thanks

Hi Mike - I originally crossposted to .vba from .developer, so the
question is there already.
Thanks
 
R

Rod Gill

Firstly you need a pdf printer that allows programmatic control or
automatically can print to the same folder and file name, but .pdf
extension. Then record a macro of you printing to pdf and use that code.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com




Curmudgeon said:
I am writing a proc to print a series of mpp's to pdf
programmatically. It's not clear to me how to specify the pdf printer
driver (presumably using FilePrintSetup?) and then how to print to a
specified path and filename (would this use FilePrint? If so, how do I
pass in the path info?).

I'm away from my workstation til Monday and don't recall what my pdf
driver is - do I use the statement

FilePrintSetup "[name of pdf driver as in Windows print dialog]:"

or is there a different way to specify the pdf driver?

Any hints would be appreciated.

Thanks

__________ Information from ESET Smart Security, version of virus
signature database 4663 (20091205) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4663 (20091205) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
C

Curmudgeon

Firstly you need a pdf printer that allows programmatic control or
automatically can print to the same folder and file name, but .pdf
extension. Then record a macro of you printing to pdf and use that code.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:http://www.projectvbabook.com




I am writing a proc to print a series of mpp's to pdf
programmatically. It's not clear to me how to specify the pdf printer
driver (presumably using FilePrintSetup?) and then how to print to a
specified path and filename (would this use FilePrint? If so, how do I
pass in the path info?).
I'm away from my workstation til Monday and don't recall what my pdf
driver is - do I use the statement
FilePrintSetup "[name of pdf driver as in Windows print dialog]:"
or is there a different way to specify the pdf driver?
Any hints would be appreciated.

__________ Information from ESET Smart Security, version of virus
signature database 4663 (20091205) __________
The message was checked by ESET Smart Security.

__________ Information from ESET Smart Security, version of virus signature database 4663 (20091205) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Thanks, Rod. I know you would be the guy with the answer. Do you know
which version of Acrobat includes Distiller? If it's the standard
version then we're talking around $100, but if it's the full Version 9
Pro it's more like $700. CuteFTP PDF Creator with extension module is
also about $700. Can you tell me if I'm on the right track, or suggest
other products that might work?
Thanks
Dave
 

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