This interface is used for managing print sessions. More...
Inherits IDispatch.
Public Member Functions | |
HRESULT | CreatePage ([in] IDCXPrintPage *page) |
Create the page. More... | |
HRESULT | CreatePageEx ([in] IDCXPrintPage *page, [in] IDCXOBJ *page_attributes) |
Advanced Create Method. More... | |
HRESULT | DeletePage ([in] IDCXPrintPage *page) |
Delete the page. | |
HRESULT | GetPrinterInfo ([out, retval] IDCXOBJ **obj) |
Get Print Info. More... | |
HRESULT | WaitForPrinterInfo ([in] int secondsToWait, [out, retval] IDCXOBJ **obj) |
Check and wait for incommingP rinter Info via N-EVENT-REPORT. More... | |
Properties | |
PRINT_COLOR_SPACE | ColorSpace [get, set] |
< The element value | |
This interface is used for managing print sessions.
Session.
HRESULT IDCXPrintSession::CreatePage | ( | [in] IDCXPrintPage * | page | ) |
Create the page.
Element value
HRESULT IDCXPrintSession::CreatePageEx | ( | [in] IDCXPrintPage * | page, |
[in] IDCXOBJ * | page_attributes | ||
) |
Advanced Create Method.
This function enables adding optional tags to the N-CREATE command.
HRESULT IDCXPrintSession::GetPrinterInfo | ( | [out, retval] IDCXOBJ ** | obj | ) |
Get Print Info.
Send a N-GET request for printer SOP class. This method is the same as the GetPrinterInfo of the requester class but here it works on the already connected association of the session while in IDCXREQ it starts a new association.
obj | If successful, the printer info |
HRESULT IDCXPrintSession::WaitForPrinterInfo | ( | [in] int | secondsToWait, |
[out, retval] IDCXOBJ ** | obj | ||
) |
Check and wait for incommingP rinter Info via N-EVENT-REPORT.
This method waits for an incoming N-EVENT-REPORT from the SCP for specified number of seconds. When N-EVENT-REPORT from the Print SCP are likely, use this method with 0 timeout Before every call to other print API commands as well as on a timer that checks for events once in a while when the association is opern
secondsToWait | How long to wait for or 0 for non-blocking read and return |
obj | If successful, the printer info object or null if nothing has arrived. |