Page 1 of 1

How to Arrange the Pages ???

Posted: Fri Jul 20, 2007 7:18 am
by jayakumargr
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 ???

Posted: Fri Jul 20, 2007 7:49 am
by Guest
The most easy way is that:

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);
Thank you.