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

Creating multiple pages

3 Answers 1582 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason McIntyre
Top achievements
Rank 2
Jason McIntyre asked on 04 Sep 2007, 09:52 AM
Hi
    We need to create a 3 page FAX report. What is the best way to add multiple pages in a report.
 
   Once the report is generated we need to save it as a PDF.

Thanks

Jason

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 06 Sep 2007, 09:03 AM
Hello Jason,

You can place your report items in the DetailSection and set its PageBreak property to "After". In this way you will go to a new page after each detail section (row from the data source). You will have as many pages as there are rows in the data source.

If your report is unbound (i.e. with static text and no data source), you can simply place all items in the detail section and adjust them in the vertical direction, so that they appear on the needed page. With this approach you might need to do several "trial-and-error" attempts until you adjust your items as you desire. Have in mind, that you will have one very tall detail section, though.

 
Sincerely yours,
Rossen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason McIntyre
Top achievements
Rank 2
answered on 08 Sep 2007, 04:55 AM
Hi Rossen
   Thanks for the reply - my report will return one row with details to be split across 3 pages.

    ie Fax header page
       Details page
       Company summary page

     Should I use 3 panels to generate 3 seperate pages ?


Jason
0
Rossen Hristov
Telerik team
answered on 08 Sep 2007, 09:57 AM
Hi Jason,

Now we understand what you need.

Follow these steps to achieve it:

1. Remove all report sections, but the DetailSection.
2. Add 3 Groups.
3. Make the 3 GroupFooters and the Detail invisible. (Visible=false). Reduce their size to something minimal.
4. For the first and second GroupHeader, set the PageBreak to After. The third will not need it, since it will be on the last page.
5. Set the Grouping of the first group (outermost) to a column from the data row that will appear in the first page.
6. Set the Grouping of the second group to a column from the data row that will appear in the second page.
7. Set the Grouping of the third group (innermost) to a column from the data row that will appear in the third page.
8. Place items bound to columns for the first page in the first (outermost) GroupHeader.
9. Place items bound to columns for the second page in the second GroupHeader.
10. Place items bound to columns for the third page in the third (innermost) GroupHeader.

We have prepared a small example of all described above to get you started. We created a dummy data table in order to demonstrate the idea. Take a close look at the report that we have attached and if you have any further questions, do not hesitate to contact us.

All the best,
Rossen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Jason McIntyre
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Jason McIntyre
Top achievements
Rank 2
Share this question
or