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

Checking if the report is loaded

4 Answers 312 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kaveh
Top achievements
Rank 1
Kaveh asked on 01 Jul 2011, 10:04 PM
Hello,
I have successfully created a report in my application and I want to save it to my disk but before saving it I should be sure that the data in the report is fully loaded from the Database. The problem is that the database isn't in the local computer and I am connecting to it remotely through the internet and it takes some time to retrieve the data depending on the internet speed which is low in my country so I have to "Thread.Sleep" my application for a few seconds in order to fully load the report and the problem is i don't know how much time i need to load it so I was thinking of a way which I could check if the report is fully loaded instead of using the Sleep function. does the Telerik reporting have such a function which i could use to check the report is loaded and after that saving the report to my disk?
Thank you
K.Eshraghian

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Jul 2011, 11:45 AM
Hello Kaveh,

Telerik Reporting is an embedded engine i.e. it is part of your application and whichever measurement you have taken to ensure that your app does not time out, would be applicable for Telerik Reports as well. If you are binding directly using the SqlDataSource Component, then you might alter its CommandTimeout property which by default is set to 30 seconds.

Regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Kaveh
Top achievements
Rank 1
answered on 04 Jul 2011, 02:19 PM
Dear Sir,
the problem is not the CommandTimeOut. the problem is when I Use an SQLDatasource in the report it takes some time for the application to fetch the data and load the report ( Generate the report), that's why I can't save the report exactly after I called the "reportViewer1.RefreshReport()" function. If I did, the file saved will contain an error on the tables that fetches data from the SQLDatasource ( which was not fully loaded at the time of saving ). So I have two ways, one is to call the sleep() function for a few seconds and then save the file (which has a high risk of getting an error again on low speed internet connections) and the second one is to check whether the SQLDatasource is loaded in the report and generating the report is complete. the second way is the one I am trying to find out how to do it.
K.Eshraghian
0
Accepted
Steve
Telerik team
answered on 05 Jul 2011, 04:00 PM
Hello Kaveh,

There is no way to know when the report has finished rendering from the report viewer itself, but you can use the RenderReport Method to render the report, which you would need either way to save the report (exporting triggers another rendering of the report).

Kind regards,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Venkat
Top achievements
Rank 1
answered on 11 Jan 2019, 06:51 AM
My scenario is like getting few images from wcf Service and rendering those images to the Telerik Reporting, it is displaying properly, here I want to find out Request and response time for each request
How do we know weather my reports are fully loaded? is there any a particular event ?
Tags
General Discussions
Asked by
Kaveh
Top achievements
Rank 1
Answers by
Steve
Telerik team
Kaveh
Top achievements
Rank 1
Venkat
Top achievements
Rank 1
Share this question
or