Refreshing a Crystal Report from a Viewer

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.
 
E

eh

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)">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top