Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

AX2012 SSRS Report Print to specific tray

$
0
0

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();


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>