SrsReportRunController.renderingCompleted Method [AX 2012]
Occurs when report rendering is completed.
Syntax
protected void renderingCompleted(SrsReportRunController _sender, SrsRenderingCompletedEventArgs _eventArgs)
Run On
Called
Parameters
- _sender
Type: SrsReportRunController Class
The controller that raises the event.
- _eventArgs
Type: SrsRenderingCompletedEventArgs Class
Arguments that provide details on the report rendered.
Remarks
Write event handlers and hook into this to handle the rendering complete event. The SrsReportRunController.renderingCompleted event does not exist on the server side. For example, see the CustInterestNoteFormLetterController class in the AOT > Classes node. The following code illustrates the event handler that is registered in the main method:
{SrsReportRunController reportRunController = new CustInterestNoteFormLetterController(); reportRunController.parmReportName(PrintMgmtDocType::construct(PrintMgmtDocumentType::CustInterestNote).getDefaultReportFormat()); reportRunController.parmArgs(_args); reportRunController.renderingCompleted += eventhandler(CustInterestNoteFormLetterController::renderingComplete); reportRunController.startOperation();}
During execution of this report in a batch mode the event is not called. Override the run method and the event can be registered for the server side event.