IPrinterScriptUsbJobContext::PrintedPageCount method (out)
Returns the number of pages that have been printed by the print device in the current job.
Syntax
HRESULT PrintedPageCount(
[out, retval] UINT32 *value
);
Parameters
value [out, retval]
The number of pages that have been printed by the print device in the current job.
Return value
This method returns an HRESULT value.
Remarks
PrintedPageCount is a read/write method. The IHV JavaScript writeData function should keep the printed page count up to date to allow USBMon to set the correct progress on the job.
If the IHV JavaScript code never calls PrintedPageCount to set the printed page count, it is assumed that an accurate count of the pages is not possible and USBMon will allow the spooler to continue estimating progress.
For information about USBMon and USB-based bidirectional communication with a print device, see USB Bidi Extender.
Requirements
Minimum supported client: Windows 8.1
Minimum supported server: Windows Server 2012 R2
Target platform: Desktop