PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Dynamic sections & tables https://forum.pdfsharp.net/viewtopic.php?f=2&t=1432 |
Page 1 of 1 |
Author: | ncsol [ Mon Nov 22, 2010 5:43 pm ] |
Post subject: | Dynamic sections & tables |
I am using latest MiDoc and am fairly new to its use. I am iterating a business object (dataset) for each date. Each date has to be on a seperate page with associated data for that date -- there can b multplie dates. I cannot seem to find a strightforward way to iterate the dataset and change the page and section for each date change (using the same loop), then filling in the table on that new page. I have tried to create the sections / tables dynamically but to now avail. What would be a good approach to do this? Any code examples would be most helpful. TIA |
Author: | Thomas Hoevel [ Tue Nov 23, 2010 8:40 am ] |
Post subject: | Re: Dynamic sections & tables |
For every new date, you call AddSection to create a new section (sections always start on a new page). Then add the date-specific information and the table. New pages will be added automatically if the table doesn't fit on a single page. We don't have a sample, but you can search this forum for AddSection: search.php?keywords=AddSection&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search This post might help: viewtopic.php?p=1554#p1554 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |