number of subreports rendered pages
number of subreports rendered pages
How can i get number of subreports pages.
Here i my code:
StiReport report = new StiReport();
report.SubReports.Add(report1);
report.SubReports.Add(report2);
report.Render(true);
I need count renderedPages from report2 in report.
Thank you.
Here i my code:
StiReport report = new StiReport();
report.SubReports.Add(report1);
report.SubReports.Add(report2);
report.Render(true);
I need count renderedPages from report2 in report.
Thank you.
number of subreports rendered pages
Hi, Albatros.
In which place do you need this information? Do you plan to receive it in Designer or in application?
Which report engine are you using? I mean EngineV1 or EngineV2 and the date of the build.
Thank you.
In which place do you need this information? Do you plan to receive it in Designer or in application?
Which report engine are you using? I mean EngineV1 or EngineV2 and the date of the build.
Thank you.
number of subreports rendered pages
Hi,
I plan to update a text object in report1 after render whole report.
I need to put a number of rendered pages of report2 in report1 page.
I use Engine V1 because I have problems with engine V2 and subreports.
Do you have any code for that.
Thanx.
I plan to update a text object in report1 after render whole report.
I need to put a number of rendered pages of report2 in report1 page.
I use Engine V1 because I have problems with engine V2 and subreports.
Do you have any code for that.
Thanx.
number of subreports rendered pages
Hello,
Thank you.
You can use following code:Albatros wrote:How can i get number of subreports pages.
Here i my code:
StiReport report = new StiReport();
report.SubReports.Add(report1);
report.SubReports.Add(report2);
report.Render(true);
I need count renderedPages from report2 in report.
Thank you.
Code: Select all
report1.Render(false);
int pagesCount = report1.RenderedPages.Count;
StiReport report = new StiReport();
report.SubReports.Add(report1);
report.SubReports.Add(report2);
report.Render(true);
pagesCount = report.RenderedPages.Count - pagesCount;
number of subreports rendered pages
Vital wrote:Hello,
You can use following code:
Thank you.Code: Select all
report1.Render(false); int pagesCount = report1.RenderedPages.Count; StiReport report = new StiReport(); report.SubReports.Add(report1); report.SubReports.Add(report2); report.Render(true); pagesCount = report.RenderedPages.Count - pagesCount;
But this means double rendering and need more time.
Is there any other direct solution.
number of subreports rendered pages
Hi Albatros,
It is impossible to know number of pages in the subreport without rendering of the subreport. That is why double rendering is required.
Thank you.
It is impossible to know number of pages in the subreport without rendering of the subreport. That is why double rendering is required.
Thank you.