Page 1 of 1

Add empty page to middle of an MDC file?

Posted: Thu Aug 13, 2009 7:24 am
by jayakumargr
Hi,
Stimulsoft provided the option to add empty page to the end of an MDC file.But i want to add empty page to middle of an MDC file.Please provide the the solution as soon as possible.

Thanks in advance,
Jayakumar

Add empty page to middle of an MDC file?

Posted: Thu Aug 13, 2009 5:30 pm
by Ivan
Hello,
jayakumargr wrote:Stimulsoft provided the option to add empty page to the end of an MDC file.But i want to add empty page to middle of an MDC file.Please provide the the solution as soon as possible.
You can use following code:

Code: Select all

yourReport.RenderedPages.Add(new StiPage(yourReport));
yourReport.RenderedPages.Insert(indexOfNewPage, new StiPage(yourReport));
yourReport.RenderedPages.RemoveAt(indexOfPage);
Thank you.