easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

WordPrintJobEx Object Description

This object is a specialized version of the PrintJob object. In addition to all the features from the PrintJob object, the WordPrintJobEx object includes numerous Word specific features.

If you need to set Word specific options, use either WordPrintJobEx or WordPrintJob instead of the generalized PrintJob object. However, do not use this object for printing documents other than the ones Word can handle. Some supported file types for WordPrintJobEx include DOC, DOCX, RTF, HTML (however URLs are not supported as Word does not handle them), TXT, and XML (so long as it is XML that Word can handle).

While WordPrintJobEx and WordPrintJob share some common properties, there are considerable differences between the two as well. Be sure to refer to the documentation to see which Word specific options each respective object supports. Of particular note is that WordPrintJobEx supports two considerably different modes of operation; see the NativeOfficePDF property for more information on this.

Customers whose applications are running in server environments (e.g., via IIS, Windows Services, Session 0, ASP, etc.) will also want to note that unlike WordPrintJob, WordPrintJobEx does not require an interactive user to be logged on in order for server conversions to succeed.

Important Note:

Be aware that WordPrintJobEx only works with Word 2007 or Word 2010. Note that Word 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. Word 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 WordPrintJobEx. If NativeOfficePDF is True, then this requirement does not apply.

Example Usage in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
' Set Word specific option
oPrintJob.RevisionMode = PRN_INLINE_REVISION
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")
Dim oPrintJob As WordPrintJobEx = oPrinter.WordPrintJobEx
' Set Word specific option
oPrintJob.RevisionMode = prnRevisionMode.PRN_INLINE_REVISION
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in C#

Printer oPrinter = new Printer();
WordPrintJobEx oPrintJob = oPrinter.WordPrintJobEx;
// Set Word specific option
oPrintJob.RevisionMode = prnRevisionMode.PRN_INLINE_REVISION;
oPrintJob.PrintOut(@"C:\test\input.doc", @"C:\test\output.pdf");