Printing problem

M

Matthew White

I am writing a vb.net program which converts ms project
files (among others) to pdf, via using a virtual
postscript printer. My problem is that when attempting to
print using project 2000, there doesn't seem to be a way
to stop the print dialog appearing??

So what im asking is does anyone have any ideas, on how to
get around my little but fustrating problem

Thanks in advance

Matthew White
 
D

David Lewis

OK, here's a related question. I print to a pdf using this
code:

FilePrintSetup "Acrobat PDFWriter"
FilePrint PageBreaks:=False, FromPage:=1

Which works great, except that it brings up a "Save PDF
File as" dialog, which I assume is Acrobat's.

Question: is there any way to suppress this dialog, either
with a setting in Acrobat or by passing the name of the
file, say along with "Acrobat PDFWriter"?

Thanks. --David.
 
R

Rod Gill

Hi,

Try recording a macro of you saving to pdf. If Project doesn't record the
file name, then there may well be no way of doing this except for using
SendKeys, which can be dangerous if the user swaps to a different program
before the pdf writer consumes the sent keys (keys that are safe and
desirable in one program can be disastrous in another).

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 

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