Row count

Stimulsoft Reports.NET discussion
Post Reply
olgas
Posts: 2
Joined: Tue Jun 05, 2018 3:26 pm

Row count

Post 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
Lech Kulikowski
Posts: 6259
Joined: Tue Mar 20, 2018 5:34 am

Re: Row count

Post 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.
olgas
Posts: 2
Joined: Tue Jun 05, 2018 3:26 pm

Re: Row count

Post by olgas »

This will work. Thank you.
Lech Kulikowski
Posts: 6259
Joined: Tue Mar 20, 2018 5:34 am

Re: Row count

Post by Lech Kulikowski »

Hello

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

Thank you.
Post Reply