Row count
Posted: Tue Jun 05, 2018 6:25 pm
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
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