How to Arrange the Pages ???

Stimulsoft Reports.NET discussion
Post Reply
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to Arrange the Pages ???

Post 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
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

How to Arrange the Pages ???

Post 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.
Post Reply