Hi, I'm having problem to print to specific tray from the report controller. No matter what value I used in the parameter, it still printed to the default tray.
Here's my code
SRSPrintDestinationSettings printSettings;
ABCSlipController controller = new ABCSlipController();
controller.parmReportName('ABCSlip.Report');
controller.parmArgs(_args);
controller.parmShowDialog(false);
// get print settings from contract
printSettings = controller.parmReportContract().parmPrintSettings();
// set printer as the destination
printSettings.printMediumType(SRSPrintMediumType::Printer);
printSettings.printerName(printer); // specify your printer name
printSettings.setPaperTray(3);
controller.parmReportContract().parmPrintSettings(printSettings);
controller.startOperation();