Bug Report T1271494
Visible to All Users

Web Document Viewer - "The document does not contain any pages" message is displayed instead of a report preview on the first run in development mode when the Submit method is called in the ParametersInitialized event handler

created 3 months ago

Steps to reproduce:

  1. Create a report with an invisible parameter.
  2. Preview this report on a web page with the Web Document Viewer.
  3. 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.

Answers approved by DevExpress Support

created a month ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Important Notes:

  • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
  • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.