Checking if the report is loaded

5 posts, 1 answers
  1. Kaveh
    Kaveh avatar
    2 posts
    Member since:
    Jul 2011

    Posted 01 Jul 2011 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 04 Jul 2011 Link to this post

    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
  3. Kaveh
    Kaveh avatar
    2 posts
    Member since:
    Jul 2011

    Posted 04 Jul 2011 Link to this post

    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
  4. Answer
    Steve
    Admin
    Steve avatar
    10940 posts

    Posted 05 Jul 2011 Link to this post

    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!

  5. Venkat
    Venkat avatar
    1 posts
    Member since:
    Oct 2013

    Posted 11 Jan in reply to Steve Link to this post

    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 ?
Back to Top