I need to export a report to a PDF doc, for emailing to a list of people monthly.
This report actually is made up of a number of Wingrids, one on each tab of a tab control.
I usually use the excel exporter to export these wingrids to a number of worksheets in a excel doc.
I have read some about the UltraGridDocumentExporter but the examples I have seen seem to only export one grid to a pdf.
My question is can this do what the excel exporter does for excel, can I export the wingrids into the same PDF doc?
Hope that makes sense.
Deasun
Thanks
Hi Deason,
Yes, that's essentially it. You can export a grid to a section (ISection). So you create the report, add a section. export the grid into that section, then you create another section, export another grid, etc.
Keep in mind, though, that the width of the section will be set by the export based on the width of the grid. So if your grids don't have the same columns and sizes, you might end up with a report with a lot of different sized pages.
So If I understand that correctly;
1] Create Report Object.
2] Add a section object to report for each wingrid that's going to be in my report.
3] Publish the Report object as a pdf doc.
That correct?
Thanks for your reply and help.
Deasun.
Hello ,
You could export several UltraGrid components in a single report, on the following link you will find simple tutorial of how to do this:
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=WinGridDocumentExporter_Export_WinGrid_to_an_Existing_Report.html
once you export your grids to a single report, you should call Publish(…) method of the report in order to save it as pdf.
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=DocumentEngine_Publish_a_Report.html
Please let me know if you have any further questions