Printing empty reports
Posted: Mon Jul 01, 2019 6:28 am
Hello!
Some of our reports are emtpy (blank page) because the user enters criterias that yield no data.
When the user prints the report into preview then this behavior is ok because they see a blank page on the screen and realize that there is no data.
But when they send a report directly to the printer, an empty page is printed. We would like to suppress this and print no page at all.
Is there any property for the class StiReport that we could use?
We found the property 'IsRenderedReportEmpty' but it seems that it is always false.
Ho can we check if a report has loaded data from the database?
Is there any way to programmatically check this?
br
joro
Some of our reports are emtpy (blank page) because the user enters criterias that yield no data.
When the user prints the report into preview then this behavior is ok because they see a blank page on the screen and realize that there is no data.
But when they send a report directly to the printer, an empty page is printed. We would like to suppress this and print no page at all.
Is there any property for the class StiReport that we could use?
We found the property 'IsRenderedReportEmpty' but it seems that it is always false.
Ho can we check if a report has loaded data from the database?
Is there any way to programmatically check this?
br
joro