Hello,
I am working on a project where I am creating reports dynamically and exporting them out to either pdf or excel. To accomplish this task, I am using the ReportProcessor and RenderingResult classes. My process is a daily process that runs and exports a standard set of reports for each person in a group of employees.
I am having a problem figuring out the best way to handle my next step. There are occasions when for a particular employee, there will be no data for a report. My thought for each report, when I set the data source in the OnNeedDataSource method, I check the row count and if no rows exist then create an error for the report. Then the RenderResult has a way to check and see if the report has any errors. If there is an error, I can keep it from exporting out a blank report.
This is just my thought on how to accomplish this. Any help on how I can either accomplish this or another way to suppress blank reports would be greatly appreciated.
Thanks,
Jeff
I am working on a project where I am creating reports dynamically and exporting them out to either pdf or excel. To accomplish this task, I am using the ReportProcessor and RenderingResult classes. My process is a daily process that runs and exports a standard set of reports for each person in a group of employees.
I am having a problem figuring out the best way to handle my next step. There are occasions when for a particular employee, there will be no data for a report. My thought for each report, when I set the data source in the OnNeedDataSource method, I check the row count and if no rows exist then create an error for the report. Then the RenderResult has a way to check and see if the report has any errors. If there is an error, I can keep it from exporting out a blank report.
This is just my thought on how to accomplish this. Any help on how I can either accomplish this or another way to suppress blank reports would be greatly appreciated.
Thanks,
Jeff