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

Telerik Report is not displaying in IE browser

1 Answer 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adarsh
Top achievements
Rank 1
Adarsh asked on 14 Mar 2018, 12:57 PM

Hi Team,

 

I am new to Reporting. We have created a reporting Project using Telerik Reporting. It is working fine in Chrome and Mozilla. But it is not working in IE.

I am not getting any error

Please find the details below.

 

Aspx Code

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="IWarrantyClaimSearch.WebForm2" %>
<%@ Register Assembly="Telerik.ReportViewer.Html5.WebForms, Version=12.0.18.227, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.Html5.WebForms" TagPrefix="telerik" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <meta http-equiv="X-UA-Compatible" content="IE=Edge" />

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <script src="Scripts/jquery-1.10.2.min.js"></script>
    <%--<script src="Scripts/polyfill.min.js"></script>--%>
</head>
<body>
    <form id="form1" runat="server">
             <telerik:DeferredScripts ID="DeferredScripts1" runat="server" />
        <telerik:ReportViewer ID="ReportViewer1" runat="server"></telerik:ReportViewer>
    </form>
</body>
</html>

 

C# Code

 protected void Page_Load(object sender, EventArgs e)
        {
            Telerik.ReportViewer.Html5.WebForms.ReportSource reportSource = new Telerik.ReportViewer.Html5.WebForms.ReportSource();
            reportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.UriReportSource;
            reportSource.Identifier = @"Report/Report1.trdp";
            ReportViewer1.ReportSource = reportSource;
            ReportViewer1.Visible = true;
        }

 

 

Please help me on this. It is very critical For me

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 16 Mar 2018, 05:14 PM
Hi Adarsh,

I have tested adding the provided code in my sample WebForms project and displaying the viewer in IE. Both report and the viewer were displayed successfully. Based on this test, I assume there might be some different settings of the browser on your side or some other settings of the application that prevent displaying of the report.

The issue might be connected to the Promise object failed to be loaded by the browser. When promises are not supported natively by the browser the viewer will try to load a Promise polyfill with the query https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise.
The loading might fail due to some browser restrictions or connection problems. To make sure that there are no Internet connection problems and the cdn service cannot be reached for some reason, download the content of the JavaScript file (open https://cdn.polyfill.io/v2/polyfill.min.js in the browser that does not support promise natively, for example IE) and save it as a local JS file.
Then update the 
src attribute of the script tag to point to the local copy of the polyfill file - make sure the relative path is correct and the file physically exists in the specified folder.

For more details about required settings check HTML5 Viewer important settings.

In case the issue persists send us a sample that reproduces it in a support ticket so we can test it locally.


Regards,
Katia
Progress 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
Adarsh
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or