PrintDialog box

M

Matt

Hi

My requirement is to print visio pages programatically using C#.
visio automation function, document.Print() works fine but it prints to the
default printer.
I need to show the print dialog box. so that user can select the printer and
other standard settings.
Any way to do this ?

Please help.

Matt
 
J

John Marshall, MVP

You can play with the Macro Recorder to see what options your printer has
and the name of the printer

This is what I recorder off my machine.

ActiveDocument.PrintOut PrintRange:=visPrintAll, PrinterName:="HP Photosmart
2570 series"
ActiveDocument.PrintOut PrintRange:=visPrintArea,
ScaleCurrentViewToPaper:=True, PrinterName:="LaserJet 1012"

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Visio Wishlist http://www.mvps.org/visio/wish_list.htm
 

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