IPrint interface (docobj.h)
Enables compound documents in general and active documents in particular to support programmatic printing.
Inheritance
The IPrint interface inherits from the IUnknown interface. IPrint also has these types of members:
Methods
The IPrint interface has these methods.
IPrint::GetPageInfo Retrieves the number of a document's first page and the total number of pages. |
IPrint::Print Prints an object on the specified printer, using the specified job requirements. |
IPrint::SetInitialPageNum Sets the page number of the first page of a document. |
Remarks
After a document is loaded, containers and other clients can call IPrint::Print to instruct a document to print itself, specifying printing control flags, the target device, the particular pages to print, and other options. The client can control the continuation of printing by calling the IContinueCallback interface.
An object that implements IPrint registers itself with the Printable key stored under its CLSID as follows:
HKEY_CLASSES_ROOT\CLSID{...}\Printable
Callers determine whether a particular object class supports programmatic printing of its persistent state by looking in the registry for this key.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | docobj.h |