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

Report viewer blank

6 Answers 219 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Jul 2015, 02:12 PM
I have a report and the report viewer loads fine in Visual Studio.  When I copy it to our production area, it shows blank pages.  It has all the page numbers and it exports just fine.  I have tried setting the width and height to under 1000 px as well as setting them to 100%.  I added a border to the viewer and it shows up.  The report viewer is on a separate page and I do a redirect to it passing what I need.  Anything I may have missed?

6 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 17 Jul 2015, 02:23 PM

Here is what I have in the Page_load of the report viewer page:

Dim hshTable As New Hashtable()
Dim rptProcessor As New Telerik.Reporting.Processing.ReportProcessor()
Dim result As Telerik.Reporting.Processing.RenderingResult = rptProcessor.RenderReport("XLS", Session("Report"), hshTable)
rptViewer.ReportSource = Session("Report") 'instance
rptViewer.DataBind()

0
Mark
Top achievements
Rank 1
answered on 17 Jul 2015, 03:07 PM
This only happens in IE not chrome. 
0
Accepted
Mark
Top achievements
Rank 1
answered on 17 Jul 2015, 03:15 PM

After hours of searching I found that I needed to put this meta tag in the <head> element of the report viewer page:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

0
Rick
Top achievements
Rank 1
answered on 12 Feb 2017, 11:38 AM
Thank you for that.  Fixed my prob with a vendor app that exhibited the same behavior.  Worked in Chrome and Edge but failed in IE (on PCs -- every IE version; even mucked with F12 developer options; did work on server IE oddly enough).
0
Stef
Telerik team
answered on 13 Feb 2017, 10:27 AM
Hi,

Telerik Reporting HTML rendering requires Standard Rendering Mode in IE browsers, which can be forced by the meta tag mentioned by Mark.
For more details, please check HTML Output.

Regards,
Stef
Telerik by Progress
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
0
Mmviseni
Top achievements
Rank 1
answered on 16 Jun 2017, 06:10 PM
Thank you very much. That helped me a lot after spending almost 5 days trying to find a solution
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Rick
Top achievements
Rank 1
Stef
Telerik team
Mmviseni
Top achievements
Rank 1
Share this question
or