Error with Pagebreak= After with Group

5 posts, 0 answers
  1. Pawz
    Pawz avatar
    51 posts
    Member since:
    Aug 2007

    Posted 22 Jun 2008 Link to this post

    I'm having a fairly serious problem getting the report to break after my group. When I set the group sections PageBreak = After, the report no longer generates! It just sits there for a long time showing the 'generating report', and then finally errors out with the following error:

    Telerik.ReportViewer.WinForms.ReportViewerException: The ReportViewer control handle failed to create. 
       at Telerik.ReportViewer.WinForms.ReportViewerBase.OnRenderingComplete(RenderingThreadResult result, PostRenderArgs args) 
       at Telerik.ReportViewer.WinForms.RenderingThread.OnComplete(RenderingThreadArgs args, RenderingThreadResult result) 
       at Telerik.ReportViewer.WinForms.RenderingThread.ThreadFunc(Object o) 
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
       at System.Threading.ExecutionContext.runTryCode(Object userData) 
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) 
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) 
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
       at System.Threading.ThreadHelper.ThreadStart(Object obj) 

    I thought it might be the report itself that was corrupted or something so I used the wizard to whip up a brand new report using the same data source, but I've still got the same problem.

    The report is simply structured:


    The grouping section is a single field, with only standard fields in the data, and it works 100% great - IF I don't specify the Pagebreak = After. It even works if I set PageBreak = Before, but then of course I get a blank page at the beginning of the report, which is crap.

    To set the data for the report I'm just creating the report, calling the database and returning a generic dataset structured exactly the same as the report dataset, and the setting the report's datasource = to the returned data.

    EDIT: I've also just tried setting the datasource in the NeedDataSource event handler, but it still sits there and crashes when I close the report viewer.

    How do I get around this / fix this issue?

  2. Steve
    Steve avatar
    10941 posts

    Posted 25 Jun 2008 Link to this post

    Hi Pawz,

    We must admit that this is a problem in our Reporting product. Unfortunately the fix for it is not as simple as we would like it to be and we still have not found how to address the problem. The issue is logged in our bug tracking system and our developers are aware of its seriousness.
    However currently a workaround/fix is not available for which we sincerely apologize. We would do our best to address this for a subsequent version.

    Please excuse us for the inconvenience. Your Telerik points have been updated as a token of gratitude.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Kushan
    Kushan  avatar
    4 posts
    Member since:
    Jul 2008

    Posted 21 Jul 2008 Link to this post

    Hi Pawz,
    Using PageBreak = Before on the group footer section might be a workarround.

  4. Y
    Y avatar
    2 posts
    Member since:
    Jun 2015

    Posted 06 Oct 2015 in reply to Steve Link to this post

    Hi Team,

    I am getting page break problem on every report  after second page. Is there any solution for this error, it's urgent work for me.




  5. Stef
    Stef avatar
    3611 posts

    Posted 08 Oct 2015 Link to this post

    Hi Madhu,

    Please check my post in the Page break in a Table forum thread.

    Please let us continue the discussion in one of both threads in order to keep a better track on the exchanged information.

    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