DoPrintDevData Event

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the ActiveX >

DoPrintDevData Event

Previous pageReturn to chapter overviewNext page

Is sent only while printing, exactly before printing a new page and immediately after BeforePrintNewPage() 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).

DoPrintDevData(

ByVal Page As Long,

long ResultingAction

)

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_ABORT

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).

 

See also:

BeforePrintNewPage Event