How to .NET's PaperSize onto Visio's VisPaperSizes

  • Thread starter Diederik van Leeuwen
  • Start date
D

Diederik van Leeuwen

Hi,

I'm working on a windows application that uses the Visio 2003 control. I'm
currently adding printing functionality using .NET's PageSetupDialog and
PrintDialog. I'm using the visioControl.Document.PrintOut method to pass most
printer settings. For page settings I already use
visioControl.Document.PrintLandscape = pageSetupDialog.PageSettings.Landscape
to pass page orientaton, but I don't see how to pass
pageSetupDialog.PageSettings.PaperSize to the visioControl.Document. There
doesn't seem to be a clear match between .NET's PaperSize and Visio's
VisPaperSizes.

Can anaybody tell me how to interpret .NET's PaperSize such that
visioControl.Document.PrintOut takes that paper size into account.

Thanks!

Regards,
Diederik van Leeuwen
Application Engineer
Telematica Instituut
The Netherlands
 

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