This is how we did it: we have created a parameter which was used to choose a printer document was to be printed on. Parameter name was "tiskaljka".
This is how the report looks like:
-----------------------------------
! This part is to be printed !
! on one kind of a paper which !
! is in one of printer trays !
-----------------------------------
! This part prints on a different !
! kind of a paper, and it is in !
! another printer tray !
-----------------------------------
Now, select "upper" repeating frame and modify its FORMAT TRIGGER to
if :tiskaljka = 'HP2100' then
srw.set_printer_tray('tray 2');
elsif :tiskaljka = 'KYOCERA_9500' then
srw.set_printer_tray('plain');
elsif :tiskaljka = 'PDF' then
null;
end if;
"Lower" repeating frame's format trigger was
if :tiskaljka = 'HP2100' then
srw.set_printer_tray('tray 1');
elsif :tiskaljka = 'KYOCERA_9500' then
srw.set_printer_tray('color');
elsif :tiskaljka = 'PDF' then
null;
end if;
The most important part of the whole story is srw.set_printer_tray('tray 2'); statement as you'll have to properly identify tray name. It can be found by viewing printer's properties (if you use MS Windows), either directly (for HP2100 which was connected locally), or via web browser (by connecting to printer's homepage) for a network printer.
I believe that you can even name these trays as you wish (for some kinds of printers); HP2100 has predefined "tray 1" and "tray 2", while we used "plain" and "color" paper type for Kyocera.
I hope you got the general idea.