Using Visio's Print Dialog in VB.Net

I have a VB.net mapping program. I would like to be able to print out the map in a number of ways. Either on 1 sheet of paper or on multiple sheets of paper (2x2, 3x3, etc.).

The normal print dialog does not provide the same number of attributes as the visio print dialog.  I initially solved the problem by creating an instance of Visio, drawing in the visio document and then allowing the user to use visio to print.  I would like to be able to print from my application.

Any pointers or links would be appreciated.

February 7th, 2015 12:46pm

The code behind the Visio print dialog only knows about printing from the Visio canvas/data objects.

The ability to print in that manner has to be handled within your code.

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2015 6:40pm

Hi Paul,

I figured as much for sending the object to the printer, but is there a way to get a dialog similar to Visio's to come up?  The VB.net dialog does not have the same page size / drawing size information.

Thanks.

February 9th, 2015 10:10am

It should be very easy to create your own dialog box using the built-in tools. But it's the code behind the dialog box that's important. THat is so far outside the remit of this forum.

Free Windows Admin Tool Kit Click here and download it now
February 9th, 2015 10:24am

Hi,

I agree with Mr. Paul, and if you have further question about the VB.net. I recommend you post the question to VB forum:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

George Zhao
TechNet Community Support

February 9th, 2015 8:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics