[ ax2012 ] call new report using SrsReportRun

1
2
3
4
5
6
7
8
9
10
11
#define.reportName('ReportNameNaja.Report')
    srsReportRun = new SrsReportRun (#reportName);
    srsReportRun.init();
    srsReportRun.reportCaption('This is a caption');
    // passing report parameter
    srsReportRun.reportParameter('ParameterNameSendToReport').value(ParameterNameSendToReportValueNaja);
    // set new file path to print settings
    srsPrintDestinationSettings.fileName(newfilePath);
    srsReportRun.printDestinationSettings(srsPrintDestinationSettings);
    // execute report
    srsReportRun.executeReport();

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.