printGDIOverlay
Event at the end of each printed page.
[event]
printGDIOverlay([in] LONG dc, [in] int pageNum,
[in] int pageWidth, [in] int pageHeight,
[in] int hDPI, [in] int vDPI)
This event is called at the end of each printed page. The event
handler can use standard Windows GDI calls to add arbitrary overlays
to the printed output.
The event will be called with the following arguments:
dc
: a Windows device context handlepageNum
: the current page numberpageWidth, pageHeight
: the size of the page (printable area), in device pixelshDPI, vDPI
: the horizontal and vertical resolution, in dots per inch, of the output device.
printForceGDI
has been set to
true).
VB:
Sub viewer_printGDIOverlay(dc As Long, pageNum As Long, _
pageWidth As Long, pageHeight As Long, _
hDPI As Long, vDPI As Long) _
Handles viewer.printGDIOverlay
' draw overlay content using the HDC handle, dc
...
End Sub