This object is a specialized version of PrintJob object. In addition
to all the features from PrintJob object, OpenOfficePrintJob
object includes OpenOffice specific features.
If you need to set OpenOffice specific options, use this
specialized object instead of generalized PrintJob
object. However, do not use this object for printing documents
other than the ones OpenOffice can handle.
At least the following document types are supported by OpenOffice
3.2:
| .odt | ODF Text Document |
| .swx | OpenOffice Text Document |
| .wpd | WordPerfect Document |
| .ods | ODF Spreadsheet |
| .sxc | OpenOffice Spreadsheet |
| .odp | ODF Presentation |
| .sxi | OpenOffice Presentation |
| .odg | ODF Drawing |
| .sxd | OpenOffice Drawing |
When printing via the generalized PrintJob, these documents are automatically printed via OpenOffice. However, when the specialized OpenOfficePrintJob is used, the following types of documents are also supported:
| .doc | Microsoft Word Document |
| .docx | Microsoft Word OpenXML Document |
| .txt | Text Document |
| .xls | Microsoft Excel Document |
| .xlsx | Microsoft Excel OpenXML Document |
| .ppt | Microsoft PowerPoint Document |
| .pptx | Microsoft PowerPoint OpenXML Document |
| .htm, .html | HTML Document |
NOTE: Due to differences in OpenOffice's rendering engine, Microsoft Office and HTML documents may not print exactly the same way as from Microsoft Office or Internet Explorer. OpenOffice is necessary to be installed on the computer for OpenOfficePrintJob. When using OpenOfficePrintJob to print Microsoft Office documents, Microsoft Office is not necessary to be installed.
Set oPrinter = CreateObject("easyPDF.Printer.7")
Set oPrintJob = oPrinter.OpenOfficePrintJob
' Set OpenOffice specific option
oPrintJob.ConvertBookmarks = True
oPrintJob.PrintOut "C:\input.odt", "C:\output.pdf"