Unable to catch error with ReportProcessor

3 posts, 0 answers
  1. Paolo
    Paolo avatar
    426 posts
    Member since:
    Jun 2009

    Posted 12 Jan 2011 Link to this post

    I use a reportProcessor to generate PDF directly from a report, I'm unable to catch the exception that are thrown inside the subreports
    I always get

    RenderingResult res =reportProcessor.RenderReport("PDF", report, null);
    bool hasError = res.HasErrors <- false

    What I've been able to do till now is :

    public xxx()
                reportFactory = new ReportFactory();
                this.NeedDataSource += new EventHandler(xxx_NeedDataSource);
                this.subReport1.ReportSource.Error += new Telerik.Reporting.ErrorEventHandler(ReportSource_Error);
            private void ReportSource_Error(object sender, Telerik.Reporting.ErrorEventArgs eventArgs)
             //how do I propagate the error here to the reportrender?

    Thanks in advance
  2. Steve
    Steve avatar
    10941 posts

    Posted 14 Jan 2011 Link to this post

    Hello Paolo,

    We reproduced the behavior as you describe it and it seems more logically the error to bubble up to the master report. We've logged that in our TODO list and will implement it as soon as possible.

    the Telerik team
    Get started with Telerik Reporting with numerous videos and detailed documentation.
  3. Beau Button
    Beau Button avatar
    3 posts
    Member since:
    Nov 2007

    Posted 17 Feb 2011 Link to this post

    Do you all have a work around until this is fixed? i.e. a method to attach to the error event for sub-reports?
Back to Top