Posted 5 October 2017, 6:40 am EST
This is for Active Reports 10.
I am setting a section report’s DataSource to a DataSet where the “main” table (Table identified by the SectionReport.DataMember property) has no rows. (This is occurring because our code is filtering out all rows from a data source and this leaves a table with no rows left, this is a reasonable occurrence for our purposes.)
However, when we print the report (render it to the viewer control). We are finding that the dewtail_format section event is being called and that the script code in that event is throwing an exception because some of the data it is manipulating is invalid–because there really is no data.
Why is detail_format being called if there is no rows? Can we turn that off. I want this to “print” and “empty” report–that UI makes sense. I don’t want to abort the print.
Note, when we have no script code, we don’t get the exception and we do print an “empty” report.