A script-enabled browser is required for this page to function properly.

SRW.SET_PRINTER_TRAY built-in procedure

This procedure specifies the name of a valid printer tray and can be used to switch to different printer trays as your report formats.

Syntax

SRW.SET_PRINTER_TRAY('tray');

Parameter

Description

tray

Is the name of a valid printer tray and can be used to switch to different printer trays as your report formats.

Usage notes

If you use SRW.SET_PRINTER_TRAY in the Format Trigger of an object, the printer tray will be changed on the page where the object is printed.   The printer tray you specify remains in effect until you change it in a subsequent trigger.

Restrictions

If you use SRW.SET_PRINTER_TRAY in the Before or After Form triggers, you will get an error for incorrect context.

Example

This example sets the printer tray in a Between Pages trigger.

function BetweenPages return boolean is
begin
  SRW.SET_PRINTER_TRAY('letterhead');
  return (TRUE);
end;

See also

Switching the printer tray

About the Reports Builder built-in package (SRW)

SRW built-in package