Unable change the page number in compiled merged report
Posted: Fri Feb 21, 2014 9:50 am
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
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