ITemplatePrinter interface

Provides a print template with access to page setup and printer settings, as well as control over print jobs initiated from the template.

Members

The ITemplatePrinter interface inherits from the IDispatch interface. ITemplatePrinter also has these types of members:

  • Methods
  • Properties

Methods

The ITemplatePrinter interface has these methods.

Method Description
ensurePrintDialogDefaults
printBlankPage
printNonNative
printNonNativeFrames
printPage
showPageSetupDialog
showPrintDialog
startDoc
stopDoc
updatePageStatus

Indicates the status of a print job.

 

Properties

The ITemplatePrinter interface has these properties.

Property Description

allLinkedDocuments

collate

Gets or sets a value that indicates whether the pages of a document are collated when printed.

copies

Gets or sets the number of copies of the document to print.

currentPage

currentPageAvail

duplex

footer

Gets or sets the footer formatting string from the Page Setup Dialog Box.

frameActive

Gets or sets a value that indicates whether the selected frame is the only one printed.

frameAsShown

Gets or sets a value that indicates whether the document's frames are printed exactly as they appear on the screen.

framesetDocument

Gets or sets a value that indicates whether all or none of the documents in the frameset are printed.

header

Gets or sets the header formatting string from the Page Setup Dialog Box.

marginBottom

Gets or sets the bottom margin of the document to be printed.

marginLeft

Gets or sets the left margin of the document to be printed.

marginRight

Gets or sets the right margin of the document to be printed.

marginTop

Gets or sets the top margin of the document to be printed.

pageFrom

Gets or sets the first page in the document to be printed.

pageHeight

Gets the current height of a page on the printer.

pageTo

Gets or sets the last page in the document to be printed.

pageWidth

Gets the current width of a page on the printer.

selectedPages

Gets or sets a value that indicates whether the entire document or a selected range of pages is printed.

selection

tableOfLinks

unprintableBottom

Gets the size of the bottom unprintable margin for the current printer.

unprintableLeft

Gets the size of the left unprintable margin for the current printer.

unprintableRight

Gets the size of the right unprintable margin for the current printer.

unprintableTop

Gets the size of the top unprintable margin for the current printer.

 

Remarks

In Windows Internet Explorer 9, the ITemplatePrinter interface was moved to mshtml.idl. In earlier versions of Windows Internet Explorer, include iextag.idl for an interface declaration.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl