Exago Logo
Search
Generic filters
Exact matches only

Global Event: OnReportExecuteInit

Available in v2019.1.9+

The OnReportExecuteInit Event occurs at the beginning of the report execution process similar to OnReportExecuteStart, but triggers before the Report Viewer’s rendering information metadata file has been created and sent to the client. This is in contrast to OnReportExecuteStart which triggers after the metadata is created.

This Event could be used to make modifications to column labels or column widths based on schema information, for example, prior to the generation of the metadata file being created.

This event will be called for all report execution types, including those via:

  • Execution in the web app process (remote execution disabled)
  • Remote execution
  • Scheduled execution (including those using the Scheduler Queue)
  • Batch scheduled executions
  • GetExecute()

Signature

For custom code the args[] array is structured as follows:
args[] is empty

For .NET Assemblies the method signature is as follows:

string OnReportExecuteInit(SessionInfo sessionInfo)

Expected Return

The OnReportExecuteInit Event expects a string to be returned. Based on the return string there are three possible results.

  • null: If the string is null then the report execution will continue as normal.
  • LanguageId: If the string matches the ID of any element in the language files then the string of that language element will be displayed as a message to the user and the report execution will terminate. For more information refer to the article on Multi-Language Support.
  • Other: If the string does not match the ID of any element in the language files then the returned value will be displayed as a message to the user and the report execution will terminate.

Notes

The report being executed can be accessed through the sessionInfo object by using sessionInfo.Report

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents