Skip to main content

Posts

Showing posts with the label ax 2012 ssrs reporting

How To: Sending Reports to file

Step 1/3: Open a report from code To open a report from code you can use the new SrsReportRunController class. In the following example the report is opened without a dialog. Create a new class, name it  AXSalesReportFromCode  and add the following code: public static void  main(Args _args) {     SrsReportRunController controller =  new  SrsReportRunController();     // establish the report name     controller.parmReportName( ssrsReportStr (AXSalesReportNew, AutoDesign1));     // suppress the parameter dialog     controller.parmShowDialog( false );     // start the operation     controller.startOperation(); } Step 2/3: Store report via code to file The new PrintDestinationSettings replaces the PrintJobSettings of the old framework, but has the same properties. In this sample the report is stored to disk. Create a new class, name it  AXSa...