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

How to Refresh Report Viewer..

5 Answers 608 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 24 Feb 2009, 09:42 AM
Hello,
  •  When i generate report in the Report viewer and close that page.
  •  When i reopen the page, it shows me the last created report. I want to refresh the
          report viewer on page_load().



Thanks,
Jaspreet.

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 10:28 AM
Hi jaspreet,

Currently when using the web report viewer, the report is being refreshed upon every postback. So basically if you need to change it on Page_Load, you can hook it to the ReportViewer in Page_Load event based on your conditions instead of declaratively setting it through the aspx markup i.e.

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack && some condition)
        {
            ReportViewer1.Report = new Report1();
        }
        else ...
    }

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amit
Top achievements
Rank 1
answered on 10 Nov 2016, 05:11 PM

Hello,

We need to refresh the report viewer due to compatibility issue. Report Viewer was working fine in IE 8,9,10 but giving issue in IE11 & Chrome browser. Currently, we are using alternate approach and that is to check the compatibility checkbox in IE setting which is not a solution and can't guide to every user to do it. So we have to fix it in the code so need help on this. Also, when we refresh the report viewer, the report will come but without refresh during page load, it is not coming. Please see the attached screenshots.

Please help us on this issue asap.

0
Amit
Top achievements
Rank 1
answered on 10 Nov 2016, 05:14 PM
The report is not refreshing due to compatibility issue in IE 11 and chrome. Currently, we have a workaround, we click the compatibility checkbox in IE and ask the user to work but it is not possible to  every user so we have to fix it in code.
0
Amit
Top achievements
Rank 1
answered on 10 Nov 2016, 05:14 PM
The report is not refreshing due to compatibility issue in IE 11 and chrome. Currently, we have a workaround, we click the compatibility checkbox in IE and ask the user to work but it is not possible to explain every user so we have to fix it in code.
0
Stef
Telerik team
answered on 10 Nov 2016, 05:22 PM
Hi Amit,

There are no screenshots to your post. Please illustrate the problem in Ie and Chrome browsers, and include details about the used viewer and Telerik Reporting version.

Important settings for using IE browser are specified in Browsers and Limitations, please check the linked article.

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
Tags
General Discussions
Asked by
Sunny
Top achievements
Rank 1
Answers by
Steve
Telerik team
Amit
Top achievements
Rank 1
Stef
Telerik team
Share this question
or