HTML Viewer - Print on iOS Safari/Chrome not working

Posted by: alexchardin on 14 September 2017, 7:08 pm EST

    • Post Options:
    • Link

    Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]Hello,

    I am using a very basic sample report with the HTML5 viewer.

    • The report renders just fine on desktop browsers and iPad browsers.
    • The report prints just fine on desktop browsers.
    • The report does not print on mobile browsers such as iPad Safari or Chrome. There is not an error or anything. The page just doesn’t do anything when you tap the print button in the viewer’s toolbar.

    Also interesting, using the iPad preview mode in Chrome on desktop (which spoofs the user agent as an iPad), also causes the report to not print. I inspected the the HTTP requests and responses and the only meaningful difference I saw was the user agent. This makes me think that the Active Reports web service is doing something based on the User Agent or that the iframe technique that the HTML viewer JS uses doesn’t work on iOS (that doesn’t seem likely to me).

    Any ideas? See below for relevant code excerpts.

    Thanks,

    Alex

    HTML:

    
    <div>
        <div id="viewer" style="width:100%;height:600px;"></div>
    </div>
    
    

    JS:

    
     $(function () {
            var viewer = GrapeCity.ActiveReports.Viewer(
            {
                element: '#viewer',
                report: {
                    id: "Reports/TestReport.rdlx"
                },
                reportService: {
                    url: '/ActiveReports.ReportService.asmx'
                },
                uiType: 'desktop'
            });
        });
    
    ```[/activereports_archive]
  • Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]Hello Alex,

    I have escalated this issue to the development team(202314) for further review on this and will get back as soon as I get any information from their side regarding the same.

    Regards,

    Reema[/activereports_archive]

  • Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]

    @reema-pruthi said:

    Hello Alex,

    I have escalated this issue to the development team(202314) for further review on this and will get back as soon as I get any information from their side regarding the same.

    Regards,

    Reema

    Thanks! Heard anything yet?[/activereports_archive]

  • Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]Hello Alex,

    The issue is still with the development team and we do not have any ETA regarding the same.

    I have asked for an update on this issue and will update you as soon as I get one.

    Regards,

    Reema[/activereports_archive]

  • Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]Hello Alex,

    Here is an update from the development team :

    "The issue is not associated with the agent. It is associated with the browser on iPad.

    We suggest you the following workaround :

    1. Export your report from the HTML5Viewer to PDF
    2. Open the File in Acrobat Reader
    3. In the opened file, press the button print

    (Note: Requirements for HTML5 Viewer installed Acrobat Reader.)"

    Hope it helps.

    Regards,

    Reema[/activereports_archive]

  • Posted 14 September 2017, 7:08 pm EST

    [activereports_archive]

    @reema-pruthi said:

    Hello Alex,

    Here is an update from the development team :

    "The issue is not associated with the agent. It is associated with the browser on iPad.

    We suggest you the following workaround :

    1. Export your report from the HTML5Viewer to PDF
    2. Open the File in Acrobat Reader
    3. In the opened file, press the button print

    (Note: Requirements for HTML5 Viewer installed Acrobat Reader.)"

    Hope it helps.

    Regards,

    Reema

    Thanks for looking into this, Reema. This workaround makes sense (although I don’t think this is an acceptable solution for commercial grade software).

    I found another workaround that is I think a little bit smoother than the suggestion above, but I have a question about how to fine tune it. I’ll start another thread to discuss that.

    Thanks again!

    Alex[/activereports_archive]

  • Posted 27 September 2018, 1:28 am EST

    Thanks for taking the time to discuss this topic. For a long time, I was seeking for this information. I feel glad to visit this site. Being an iMac user I want to share my experience that I am using iMac since last year and I got problem while I was connecting to the wifi then i took support fromhttps://www.appletechnicalsupportnumbers.com/apple-customer-support/

    and they helped me a lot and resolve issues in a short period of time.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels