Pages

Men

rh

4/02/2013

How to refresh the crystal report data from ASP.Net



<meta http-equiv="refresh" content="1">

within ur <head>.

This would refresh the whole page.To avoid this ,you could embed your page with the report in an iframe and then embed that iframe in your "outer" page.That way, you can refresh the inner page with just the report, while the main page remains.

The problem here would be that when the embedded page refreshes the browser,it would show the progress bar in the status bar and the whole page shows a flicker which is same as if the whole page (outside page) is refreshed. For that ,use refresh code and this in iframe header.

<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=0.0)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=0.0)">

That way , we can get a smoother effect.

ReportDocument rd = new ReportDocument();
rd.Refresh();

Or

ReportViewer.Refresh();

No comments :

Post a Comment