Hi,
i add certain components in newReport.Pages["Page1"] at run time. and i add two pages to the report at run time using following code.
StiPage coverPage=new StiPage(newReport);
coverPage.Name = "Cover";
newReport.Pages.Add(coverPage);
StiPage contentPage=new StiPage(newReport);
contentPage.Name = "TOC";
newReport.Pages.Add(contentPage);
i want to arrange the pages like Cover,TOC,and Page1
How to arrange the Pages at run time (coding) ??? (in stimulsoft 2007.1)
Please provide the solutions....
Thanks in Advance,
Jayakumar
How to Arrange the Pages ???
-
- Posts: 85
- Joined: Sat Jan 20, 2007 4:21 am
How to Arrange the Pages ???
The most easy way is that:
Thank you.
Code: Select all
StiPagesCollection collection = newReport.Pages;
StiPage coverPage=new StiPage(newReport);
coverPage.Name = "Cover";
collection.Insert(0, coverPage);
StiPage contentPage=new StiPage(newReport);
contentPage.Name = "TOC";
collection.Insert(1, contentPage);