Refreshing a Crystal Report from a Viewer

  • Thread starter Thread starter Krishna Karthik
  • Start date Start date
K

Krishna Karthik

Hi;
I am using a Crystal Report Viewer to display Crystal
Reports(rpt).
I want to refresh these reports based on a timer.
Inside the timer function i am calling
CrystalReportViewer.RefreshReport()

But this does not work..

Please help.
 
If the user is viewing the report via the viewer on his browser, you need to
force a refresh of his browser.
How about javascript here?
<script language=javascript>
function loadMeAgain(){
window.location=window.location.href
/*
you could try window.location.reload() but this could cause a resend
information box popup.
With the other method shown above some posted form data that you want
perpetuated may not be.
*/
}
</script>
Add to the body tag or add a body tag if it does not exist on the
page with the viewer <body onload="setTimeout('loadMeAgain()',60000)">
 
Back
Top