DoPrintDevData Event - Python

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the Python Control >

DoPrintDevData Event - Python

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

integer DoPrintDevData(

PageNumber as integer

)

PageNumber

current page number that will be printed

Remarks:

The event handler should return:

Resulting Action

Value

PRINT_ACTION_OK

0

PRINT_ACTION_CHANGE

1

 

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