Bug Report T317316
Visible to All Users

HTML5 Document Viewer - Empty document appears when restoring a document from prnx

created 9 years ago

When i try to restore report from .prnx, reprot looks like empty.
Solution with example in attachment.

Show previous comments (1)
BR BR
Boris Rudelson 9 years ago

    Attached is not an empty prnx But the viewer still displays no pages.
    If you remove test.prnx, it will generate a new one, and it has no pages. But if we add report.CreateDocument (); the page is. But they do not appear in the viewer.

    DevExpress Support Team 9 years ago

      Thank you for the update, Pavel. I was able to reproduce the issue and passed it to our developers for investigation. Basically, this issue is related to the HTML5 Document Viewer's engine and we need more time to research this behavior. Your patience is appreciated.
      At the moment, you can switch back to the ASP.NET Document Viewer.

      BR BR
      Boris Rudelson 9 years ago

        Well, we look forward to fix! Now we use the old viewer, but it does not satisfy us.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Additional information:

        To load the generated document and preview it in the ASPxWebDocumentViewer, you can use an approach similar to the one given below:

        C#
        protected void Page_Load(object sender, EventArgs e) { ASPxWebDocumentViewer1.OpenReport(GetReport()); } XtraReport GetReport() { XtraReport report = new XtraReport1(); report.AfterPrint += report_AfterPrint; return report; } void report_AfterPrint(object sender, EventArgs e) { string prnxFilePath = AppDomain.CurrentDomain.BaseDirectory + "your prnx file path"; ((XtraReport)sender).PrintingSystem.LoadDocument(prnxFilePath); }
          Comments (2)
          BR BR
          Boris Rudelson 9 years ago

            Is it a work around or a final fix?
            Can I restore report without "report.AfterPrint += report_AfterPrint" if i load 15.2.4  ?

            DevExpress Support Team 9 years ago

              Hello Pavel,
              A realize that the situation may look a bit confusing. Let me clarify. The code snippet marked as a solution will work starting with the mentioned version (15.1.9, 15.2.4).
              Due to the current architecture of the ASPxWebDocumentViewer, this solution is the recommended way for the time being.

              I want to inform you that we've already discussing another related problem and our developers will keep working on it in the scope of the HTML5 Document Viewer - Provide the capability to avoid the recreation of a document before previewing a report ticket. You can add it to your favorites to receive notifications on our progress.

              Thanks

              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.