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

Error with Pagebreak= After with Group

4 Answers 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pawz
Top achievements
Rank 1
Pawz asked on 23 Jun 2008, 12:01 AM
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:

Group
        Data
        Data
Group
        Data

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?


4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jun 2008, 01:47 PM
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.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kushan
Top achievements
Rank 1
answered on 21 Jul 2008, 10:15 AM
Hi Pawz,
Using PageBreak = Before on the group footer section might be a workarround.

Kushan
0
Y
Top achievements
Rank 1
answered on 06 Oct 2015, 11:35 AM

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.

Thanks,

Madhu

 

0
Stef
Telerik team
answered on 08 Oct 2015, 11:07 AM
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.

Regards,
Stef
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
Tags
General Discussions
Asked by
Pawz
Top achievements
Rank 1
Answers by
Steve
Telerik team
Kushan
Top achievements
Rank 1
Y
Top achievements
Rank 1
Stef
Telerik team
Share this question
or