This is a migrated thread and some comments may be shown as answers.

Problem with reporting in iPads(iFrame)

1 Answer 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AR
Top achievements
Rank 1
AR asked on 29 Mar 2016, 01:13 PM

It looks like the reports don't work when being generated in iPad-Safari with our system being iFramed.  It only displays the first page of the report and it looks like the pdf report is not being downloaded. It seems to be opened up in regular browser view 

I have tried changing the doctype as instructed here but that did not have any effect:
http://www.telerik.com/support/kb/reporting/details/blank-report-in-asp.net-reportviewer-on-ipad-iphone

We are already adding 'Content-disposition' to the response header:
response.AddHeader("Content-Disposition", string.Format("{0};FileName=\"{1}\"", "attachment", strFileName));

We have the latest version. 

Does anybody have any idea what might fix this?

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 30 Mar 2016, 04:35 PM
Hi AR,

Based on the provided description, it looks like the report is exported programmatically and the PDF file is returned to the client in browser e.g. How do I display a PDF directly in the browser without exporting first?

In such scenario the PDF file will be handled by the browser's PDF plugin, which is not in the scope of the reporting engine. Please check if the tested browsers support PDF previewing in browser, and if the returned response actually contains the PDF file or its bytes.


Test also the attached web applications, which use the latest available Telerik Reporting v10.0.16.325. The generated PDF files have additiona Adobe Javascript, which will cause the browser's PDF plugins to show their Print dialogs (this will indicate the PDF is loaded in browser).


On a side note, our recommendation is to test the HTML5 Viewer, that is designed for modern browsers and does not rely on IFRAME elements to display its content.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
AR
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or