Cancel Report Generation

2 posts, 0 answers
  1. Paul
    Paul avatar
    16 posts
    Member since:
    Jan 2012

    Posted 11 Jan Link to this post

    Is there anyway to cancel a report being generated with RenderReport?  For example, we are creating a PDF of a report that takes some time to finish.  Is there any asynchronous ways of creating the report such that we can cancel its execution? 

     

    I saw a post on here a few years ago that it couldn't be canceled, but I'm hoping something has been done since then to change this.  Thanks for any guidance.

    Example:

    ReportProcessor reportProcessor = new ReportProcessor();                      

    ReportLibrary.TestReport report = new ReportLibrary.TestReport();                                               InstanceReportSource reportSource = new InstanceReportSource();                         

    reportSource.ReportDocument = report;                         

    RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, null);

  2. Todor
    Admin
    Todor avatar
    160 posts

    Posted 16 Jan Link to this post

    Hi Paul,

    Currently, the generation of a report cannot be cancelled.

    A possible workaround is to run the ReportProcessor in a separate thread, and kill the thread based on some custom condition (i.e. after some time).

    Regards,
    Todor
    Progress Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top