This object is a specialized version of PrintJob object. In addition
to all the features from PrintJob object, IEPrintJob
object includes numerous Internet Explorer specific
features.
If you need to set Internet Explorer specific options, use this
specialized object instead of generalized PrintJob object. Use
IESetting property to set IE options if you just need all your
document printed with same settings. On the other hand, set
the rest of properties independently other than IESetting to enable
each document with its own settings (in multi-threaded mode).
' All documents with same settings Set oPrinter = CreateObject("easyPDF.Printer.6") Set oPrintJob = oPrinter.IEPrintJob Set oIESetting = oPrintJob.IESetting ' Set IE specific option oIESetting.Header = "" oIESetting.Footer = "" ' ... ' Save changes oIESetting.Save oPrintJob.PrintOut "C:\input.htm", "C:\output.pdf" ' Each document with its own settings Set oPrinter = CreateObject("easyPDF.Printer.6") Set oPrintJob = oPrinter.IEPrintJob ' Set IE specific option oPrintJob.Header = "" oPrintJob.Footer = "" oPrintJob.PaperOrientation = PRN_PAPER_ORIENT_LANDSCAPE ' ... oPrintJob.PrintOut "C:\input.htm", "C:\output.pdf"