reports

Dec 4, 2013 at 12:06 PM
I like the idea of the "simple" report generation. Has anyone a sample running including text, table(s) and graph?
Coordinator
Dec 4, 2013 at 8:18 PM
See the WPF/ExportDemo example - it includes text, tables and graph.
The html, tex and docx outputs work as intended (I just submitted a flushing fix for html output)
Pdf output works, but is really slow (generating a few pages takes minutes, this seems to be a problem in the latest version of MigraDoc, or maybe something is not correct configured).
Xps output works - but formatting is not correct.
So... I think there is some work left to do before this is really usable...
Dec 5, 2013 at 9:05 AM
Ok, thanks. I didn't notice that example. I'll check it out.
Dec 5, 2013 at 1:01 PM
Apparently the slowness of rendering pdf's has to do with the migradoc implementation of drawing large tables for pdf, see http://forum.pdfsharp.net/viewtopic.php?f=2&t=679&p=7559&hilit=table#p7559. On this board someone found a solution for this problem which was patched by him. However the maintainers of the project don't want to include the patch in the trunk, due to not being 100% compatible with original implementation. Patch or compiled assemblies are available on te site of the patcher, see http://pakeha_by.my-webs.org/MigraDocFastTableRender.html.
Dec 5, 2013 at 1:37 PM
ok tried it with the export demo, Normal distribution example with 4004 datapoints. If you choose "Save pdf report" the Original output is finally generated after 30 seconds in my case. I replaced the pdfsharp.dll with version 1.32 and applied the patched assemblies with the WPF versions. After this replacement the pdf report was generated in less than two seconds. This example contains 78 pages of table. The rest of the report looks the same as before the replacement.
Coordinator
Dec 6, 2013 at 6:19 PM
Great! Do I understand correctly - you used the WPF with the patch applied, not the latest official Nuget version?
Dec 8, 2013 at 3:07 PM
yes, I tested with the wpf versions of the migradoc dll's (not the official version but the patched version). So I did a download of pdfsharp version 1.32 and then I downloaded from http://pakeha_by.my-webs.org/MigraDocFastTableRender.html all the migradoc dll's which are also version 1.32. Because I changed the original migradoc dll's i had to comment one piece of the code which was gdi+ specific. It was about retrieving the image for gdi when there is no cached image. I changed the original dll's to wpf dll's but I guess that isn't exactly necessary because there are also migradoc dll's version 1.32 which are gdi+ like the ones that oxyplot.pdf is referencing now. So maybe only upgrading pdfsharp.dll to 1.32 and applying the patched migradoc dll's will suffice.
May 12, 2014 at 7:33 AM
Can I ask where is the exact link for example of exporting to pdf containing text, table(s) and graph in Window form?

thanks
Coordinator
May 12, 2014 at 9:37 AM
There is only an example for WPF. See Source\Examples\WPF\ExportDemo