Steps to reproduce:
- Create a report with an invisible parameter.
- Preview this report on a web page with the Web Document Viewer.
- Handle the ParametersInitialized event as demonstrated in the following documentation: Handle the ParametersInitialized Event.
Expected results:
The parameter's value is successfully passed to a report and it is previewed correctly on the web page.
Current results:
Document generation results in an empty document, and the "The document does not contain any pages" message appears on the first run. The same report works fine if the page is reloaded.
Workaround:
According to our initial research, the issue is related to the Submit
method call in the ParametersInitialized
event. Thus, to overcome this issue you can use an alternative solution to pass parameters to a previewed report by embedding them into a string passed to the reportUrl
variable. This solution is demonstrated in the Use Custom UI Elements part of the following help topic: Specify Parameter Values.
Additional information:
We forwarded this issue to our development team for further research. We will update this thread as soon as we have any update on this.