Unable change the page number in compiled merged report

Stimulsoft Reports.Silverlight discussion
Locked
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Unable change the page number in compiled merged report

Post by shyam.pundkar »

Dear Team,

I have two compiled , rendered reports (byte[]). The page numbers of both the reports are 1 of 2 and 2 of 2 respectively.
I have created merged reports by using these two reports by adding their renderedpages into a new report.
So after merging these two reports total number of pages in merged report would be 4.
Now I want the new merged report to show page numbers as
1 of 4,
2 of 4,
3 of 4 and
4 of 4.
but it displays 4 pages having page numbers as
1 of 2,
2 of 2,
1 of 2 and
2 of 2

here is the code:
StiReport finalStiReport = new StiReport();
foreach (Blob in Blobs)
{
StiReport stiReport = new StiReport();
stiReport.LoadDocument(Blob);
finalStiReport.RenderedPages.AddRange(stiReport.RenderedPages);
}

I have tried many scenarios using resetpagenumber & pagenumber but unable to reset the numbers of this compiled rendered report.

Is it possible to change the page numbers in compiled rendered report? if yes, how can I achieve it?

Any help would be greatly appreciated.

- SHYAM
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Unable change the page number in compiled merged report

Post by HighAley »

Hello.

You join rendered report and what to change it. But it's impossible. After report is rendered, all components have own values, sizes and places which couldn't be changed automatically. It's impossible to do by rendering only.
So you should at first join reports and only then render the joined report.

Thank you.
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Re: Unable change the page number in compiled merged report

Post by shyam.pundkar »

Thanks Aleksey Andreyanov for your help!
Really Appreciated!
-SHYAM
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Unable change the page number in compiled merged report

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Locked