This is a migrated thread and some comments may be shown as answers.

Dynamically created reports

0 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff Rice
Top achievements
Rank 1
Jeff Rice asked on 11 Jan 2011, 06:20 PM
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

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Jeff Rice
Top achievements
Rank 1
Share this question
or