public static void main(Args _args) { SrsReportRunController controller = new SrsReportRunController(); SRSPrintDestinationSettings printSettings; // set report name controller.parmReportName(ssrsReportStr(LedgerBalanceControl, Report)); // get print settings from contract printSettings = controller.parmReportContract().parmPrintSettings(); // set printer as the destination printSettings.printMediumType(SRSPrintMediumType::Printer); printSettings.printerName = "My Printer"; // specify your printer name printSettings.printLandscape(true); // print in landscape orientation printSettings.numberOfCopies(2); // print 2 copies printSettings.setPaperTray(1); // print to paper tray with index = 1 printSettings.collate(true); // collate printed copies // suppress the parameter dialog to send directly to printer controller.parmShowDialog(false); // start operation controller.startOperation(); }
http://www.andesoft.net/how-to-overwrite-print-managment-on-a-ssrs-report-on-dynamics-ax-2012/
No comments:
Post a Comment