<< Click to Display Table of Contents >> OnPrintDevData Event |
Is sent only while printing, exactly before printing a new page and immediately after OnPrintNewPage() has been sent. The only use for this event is to call DevSendData() in response.
DevSendData() enables your application to send escape sequences to the printing device. So it is possible to select for example an output paper bin by code (or whatever other functionality is provided by the connected printer).
OnPrintDevData(
Sender: TVPEngine;
Page: Integer;
var ResultingAction: Integer
)
Sender
the VPE object that fired the event
Page
current page number that will be printed
ResultingAction
is a return-parameter, i.e. you can assign it one of the following values to control the resulting action of VPE:
Resulting Action |
Value |
PRINT_ACTION_OK |
0 |
PRINT_ACTION_ CHANGE |
1 |
Remarks:
Your application should return PRINT_ACTION_OK (zero) if it processes this message without calling DevSendData().
If it called DevSendData(), your application must return PRINT_ACTION_CHANGE ( = 1).