Ticket T818267
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Xtrareport - Print Report button does not work after Google Chrome Update 76.0.3809.132

Print Report button does not work after Google Chrome Update

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T814122: ASPxDocumentViewer - Print Report button does not work after Google Chrome Update 76.0.3809.132]

Hi all

error in console that "Uncaught TypeError: Cannot read property 'printHelper' of undefined" please refer the attachement

I am using 14.2.4 version and can not be upgrade

Comments (2)
DevExpress Support Team 5 years ago

    Hello Chandana,

    Would you please clarify whether you are using the ReportViewer control in your application? This will make the situation clearer.

    Thanks,
    Elliot

    C C
    Chandana Pushpa Kumara 5 years ago

      Hi Elliot

      thank you for comment

      Yes, I used ReportViewer control in my application

      Answers approved by DevExpress Support

      created 5 years ago (modified 5 years ago)

      Hello Chandana,

      Thank you for your clarification. Please use the workaround provided in the Xtrareport - Print Report button does not work after Google Chrome Update 76.0.3809.132 ticket to avoid this issue.

      Thanks,
      Elliot

        Comments (3)
        C C
        Chandana Pushpa Kumara 5 years ago

          Hi Elliot

          thank you very much

            Hello,
            I have the same problem as Chandana has .  After adding the source code to my report.aspx page, my report page wouldn't load the report. Screenshot is attached.

            JavaScript
            <dx:ReportViewer ID="InterimStatus_RegionFIViewer" runat="server" PageByPage="True"> <ClientSideEvents PageLoad="init"/> </dx:ReportViewer> <script type="text/javascript"> function init(s) { var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); var createFrameElement = s.printHelper.createFrameElement; s.printHelper.createFrameElement = function (name) { var frameElement = createFrameElement.call(this, name); if (isChrome) { frameElement.addEventListener("load", function (e) { if (frameElement.contentDocument.contentType !== "text/html") frameElement.contentWindow.print(); }); } return frameElement; } } </script>

            DevExpress.Web.v14.2, Version=14.2.3.0

            Thanks,
            Jen

            Vasily (DevExpress Support) 5 years ago

              Hi Jen,

              I've created a separate ticket on your behalf for this issue: T823864: ReportViewer control stops working after adding the fix for the Chrome browser's printing. Let's continue our conversation regarding this issue in that thread.

              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.