Give a file name for printer output to a file

S

Stefan Schnell

Hello community,
with the following code I change the printer and print the active document

Application.ActivePrinter = PrinterName
ActiveDocument.Print

The printer is printing into a file and I want to know: How is the way to
give Visio the name of the file?

E.g. in Excel you can give the PrintOut order an argument, this is name of
the file:

ExcelApp.ActiveWorkbook.PrintOut , , , , , True, , _
DestinationPath & NameOfFile & "ps"

Is there an similar order in Visio?

Thanks for tips.
Stefan
 
J

JuneTheSecond

If your Visio is 2003, PrintOut method is available, available first in
Visio2003.
Or DoCmd method shows the print dialog that includes the option to output to
file.
For example, Application.DoCmd visCmdFilePrint .
 
S

Stefan Schnell

Hello JuneTheSecond,
thanks for your tip, I work with Visio 2002 and DoCmd is the right way for me.
Bye
Stefan
 

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