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]