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

Dynamic Report PageBreak

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
simcon94
Top achievements
Rank 1
simcon94 asked on 16 Dec 2013, 11:12 AM
Hi,
i created an Report dynamically.
In the InitializeComponent Function i create a Table, Chart or an Pie. Or all.

     if (datas.PresentationType == "1")
            {
                CreateTable(datas.ResultTable);    
            }
            else if (datas.PresentationType == "2")
            {
                CreatePieAndGraph(datas);
            }
            else if (datas.PresentationType == "3")
            {
                CreateTable(datas.ResultTable);
                CreatePieAndGraph(datas);
            }

That works. But i want to have, that the Table is on one side, the pie on the next side und the graph is on next side.
Can i do this with PageBreak?
Every chart, pie or table is in the detail section of my report.

I dind´t set the location for pie, table and graph.
So it looks like:


1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 16 Dec 2013, 06:52 PM
Hi Simon,

Only report sections have PageBreak property. Depending on your report layout you can place the items in separate sections and set the corresponding PageBreak properties.
Other approach would be to position the items in the report in such way each occupies the space defined for a single physical page, and thus force the document to render a separate page for each item.
In addition, test if creating a separate report for each item and gathering them in a ReportBook, which is treated as a single document on preview, export and printing, suits your requirements.

In all cases, please test creating a simple layout using the report designer. thus you can check the code that is generated in the report's designer.cs(vb) file, and reuse the code in your dynamically created report object. This will assure you have not missed any property required for the proper rendering of the document.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
simcon94
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or