The Eject Method does not work when printing from an APL2000Draw (see enclosed function). However, sending a []TCFF to the printer at the end of each page instead of using the Eject Method will solve the problem. This is just another example how reliable these old APL concepts are.
PrintAPL2000Draw;prt;tgt;pg
:if 0¹½(prt„'psPrint')ŒWI 'self'
0 0½prt ŒWI 'New' 'Printer' 'Open'
prt ŒWI'Abort'
:end
prt ŒWI 'Print' ' ' © initialize printer
:if 0=½(tgt „ 'psPrintDraw')ŒWI'self' © hidden printing ocx
0 0½tgt ŒWI'Create' 'APL2000.Draw'
:endif
© Take pages in turn, eject paper
:for pg :in ¼3
tgt ŒWI 'Reset' ª tgt ŒWI 'Clear' © Clear OCX
tgt ŒWI 'CreateFont' 'TIBI' 'Times New Roman' 3 © Bold+Italic
tgt ŒWI 'FillText' 100 10 'TIBI' 14('This is page ',•pg)
tgt ŒWI 'DrawOnHDC' (›prt ŒWI 'hdc'),0 0
0 0½prt ŒWI 'Eject' © does not work !!!
© 0 0½prt ŒWI 'Print' ŒTCFF © use this one instead
:end
prt ŒWI'Close'