Page 1 of 1

Row count

Posted: Tue Jun 05, 2018 6:25 pm
by olgas
We are upgrading the version of Stimulsoft.Net we use from 2016.2.0.0 to 2018.2.2.0

Below is a simple example of how we generate reports and evaluate the results.
We log the rows retrieved in the first datasource on the report and log this information for auditing purposes.
This code works with 2016.2.0.0 but using 2018.2.2.0 the rowsReturned is always 0.
I could not find a way to get the row count in the datasource after the render.

We are able to export the report with results correctly regardless of the count.

Dim s_Report As New StiReport
Dim rowsReturned As Integer
s_Report.Load("c:\test\test.mrt")
s_Report.Render()
s_Report.ExportDocument(StiExportFormat.Pdf, "C:\test\test.pdf")

rowsReturned = s_Report.CompiledReport.DataSources.Items(0).Count

Re: Row count

Posted: Mon Jun 11, 2018 11:38 am
by Lech Kulikowski
Hello,

Was made the fix for memory using optimization.

At the current moment, you can check and save that value in EndRender event.

Thank you.

Re: Row count

Posted: Mon Jun 11, 2018 2:03 pm
by olgas
This will work. Thank you.

Re: Row count

Posted: Mon Jun 11, 2018 3:22 pm
by Lech Kulikowski
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.