Hi
I'm evaluating StimulReport and so far I really like it, but I have one doubt:
I have a requirement to generate a report with multiple pages. The data for each page comes from a call to a stored procedure (one call => one page). This report is used to generate and print multiple timesheets in one step.
How can I do this with StimulReport?
Thanks
Pedro
Report for print job
-
- Posts: 3
- Joined: Tue Aug 07, 2007 9:51 am
- Location: Portugal
Report for print job
If i right understand your question, you can use property StartNewPage of DataBand. Set this property to true and you will receive one row per page.
Thank you.
Thank you.
-
- Posts: 3
- Joined: Tue Aug 07, 2007 9:51 am
- Location: Portugal
Report for print job
Hi
thanks for replying.
I didn't had the time to try your suggestion, but I will try to explain better:
1. I have a report called "timesheet". This report contains the work time records for one worker in a month. It has a header with the worker name, job etc, a table with the time records and a footer with total work time. The data to fill this report comes from a stored procedure and has multiple datarows (the work records for a month). I already know how to generate this with StimulReport, no problem
2. now, I want to select multiple workers and generate a timesheet for each worker, and do this in a single button click. This will export to Excel with one worksheet for each timesheet, or to PDF with one page for each timesheet.
I hope I was more clear this time.
Pedro
thanks for replying.
I didn't had the time to try your suggestion, but I will try to explain better:
1. I have a report called "timesheet". This report contains the work time records for one worker in a month. It has a header with the worker name, job etc, a table with the time records and a footer with total work time. The data to fill this report comes from a stored procedure and has multiple datarows (the work records for a month). I already know how to generate this with StimulReport, no problem
2. now, I want to select multiple workers and generate a timesheet for each worker, and do this in a single button click. This will export to Excel with one worksheet for each timesheet, or to PDF with one page for each timesheet.
I hope I was more clear this time.
Pedro
Report for print job
In this case you should create a Master - Detail - SubDetail report. This kind of report you can see in the Demo.exe example application in the "Master-Detail Reports" group. In your case you should set source for the Master DataSource to the table which contains workers selected.
You can place a worker-specified information on this band or even set the height of it to zero to avoid its printing but the main role of this band is to show all selected workers. StartNewPage property of this DataBand also should be set in true.
For selecting workers you can use a StiCheckedListBox control on the form in the StimulReport.Net or you can select it via any other method which suits your requirements. The data may be represented in many different ways. One of them is a HashTable with selected pairs of value - key which are later may be used in your filter for the MasterDataSource band.
If the solution suggested is not clear or exists some additional requirements, please feel free to contact
with a mrt file of your report and a sample data for it. We will help you with selecting data for the report.
Thank you.
You can place a worker-specified information on this band or even set the height of it to zero to avoid its printing but the main role of this band is to show all selected workers. StartNewPage property of this DataBand also should be set in true.
For selecting workers you can use a StiCheckedListBox control on the form in the StimulReport.Net or you can select it via any other method which suits your requirements. The data may be represented in many different ways. One of them is a HashTable with selected pairs of value - key which are later may be used in your filter for the MasterDataSource band.
If the solution suggested is not clear or exists some additional requirements, please feel free to contact

Thank you.
-
- Posts: 3
- Joined: Tue Aug 07, 2007 9:51 am
- Location: Portugal
Report for print job
Great, I will try it as soon as I have the time. The method you describe seems simple and I'm sure it does the job.
Thanks
Pedro
Thanks
Pedro