Printing On Selected Trays
30718Feb 19 2003 — edited Feb 20 2003I developed custom Report, which should print from different trays.
In Report System Parameters, I specified DESTYPE AS "Printer", And
DESFORMAT AS "\\PRINTMGR\MARKET2"(nothing but printer name).
In report, on one of the field i wrote below format trigger
function F_BOLFormatTrigger return boolean is
pageNumber number(10);
begin
srw.get_page_num(pageNumber);
if (pageNumber = 1)
then
SRW.SET_PRINTER_TRAY('TRAY2');
else
SRW.SET_PRINTER_TRAY('TRAY3');
end if;
return (TRUE);
end;
Printer Type : HP LaserJet 4si, which consists two trays.
And in page setup also i specified :\\PRINTMGR\MARKET2
When ever i run report it is showing below message
REP-1921: Input Printer tray 'TRAY2' not available on selected printer
Could any body tell me what i am doing wrong here, bcoz printer consists 'TRAY 2', but error will tell it does not exist. I tried with various style to put tray 2 in my format trigger i.e 'TRAY2', ' Tray 2 ' and 'TRAY 2' none of these combinations worked.
Thanks in advance for your help.