This object is a specialized version of the PrintJob object. In addition
to all the features from the PrintJob object, the
VisioPrintJobEx object includes numerous Visio specific
If you need to set Visio specific options, use either VisioPrintJobEx or VisioPrintJob instead of the generalized PrintJob object. However, do not use this object for printing documents other than the ones Visio can handle.
While VisioPrintJobEx and VisioPrintJob share some common properties, there are considerable differences between the two as well. Be sure to refer to the documentation to see which Visio specific options each respective object supports. Of particular note is that VisioPrintJobEx supports two considerably different modes of operation; see the NativeOfficePDF property for more information on this.
Be aware that VisioPrintJobEx only works with Visio 2007 or Visio 2010. Note that Visio 2007 requires the free "Save as PDF or XPS" add-in for Office 2007 to be installed. This add-in is available from Microsoft and does not install with easyPDF SDK. Visio 2010 does not require any add-ins.
Furthermore, if NativeOfficePDF is False (its default value), then .NET 3.0 or higher plus XmlLite (XmlLite should install as part of Office 2007) are required to use VisioPrintJobEx. If NativeOfficePDF is True, then this requirement does not apply.
Set oPrinter = CreateObject("easyPDF.Printer.8") Set oPrintJob = oPrinter.VisioPrintJobEx ' Set Visio specific option oPrintJob.NativeOfficePDF = True oPrintJob.PrintOut "C:\test\input.vsd", "C:\test\output.pdf"
Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8") Dim oPrintJob As VisioPrintJobEx = oPrinter.VisioPrintJobEx ' Set Visio specific option oPrintJob.NativeOfficePDF = True oPrintJob.PrintOut "C:\test\input.vsd", "C:\test\output.pdf"
Printer oPrinter = new Printer(); VisioPrintJobEx oPrintJob = oPrinter.VisioPrintJobEx; // Set Visio specific option oPrintJob.NativeOfficePDF = true; oPrintJob.PrintOut(@"C:\test\input.vsd", @"C:\test\output.pdf");