Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

SSRS printing asynchronous

$
0
0

I have the requirement to print an SSRS report then a bunch of SO invoices all to screen. I am programatticaly running the report with the following code

    SrsReportRunController  controller;

    FreightConsignmentEnvelopeDC contract;

    controller = new SrsReportRunController();

    controller.parmReportName(ssrsReportStr(FreightConsignmentEnvelope, report));

    contract = controller.parmReportContract().parmRdpContract() as FreightConsignmentEnvelopeDC;

    contract.parmConsignmentNum(_consigmentId);

    controller.parmShowDialog(false);

    // controller.renderingCompleted += eventhandler(ShipmentConsignmentEnvelope::test);

    controller.startOperation();

 

This code works but halts the code at the last line until the user clicks close on the SSRS report on the screen. I need it to continue once rendering is complete. 

The commented out RenderingCompleted event handler seems to only accept static methods with wont work for me because this method is being run in a loop and the static method obviously has no reference back to where I am in the loop.

Has anyone else had this issue and is there something obvious I'm missing?


Viewing all articles
Browse latest Browse all 9880

Trending Articles