PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Pie chart support in MigraDoc
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3832
Page 1 of 1

Author:  Benny [ Sun Aug 26, 2018 9:37 pm ]
Post subject:  Pie chart support in MigraDoc

Its seems that MigraDoc doesn't support piechart while pdfsharp do support all types of chart. Also mixing MigraDoc and pdfsharp is also a issue and hence I'm not able to try the option. Can you provide a solution to implement piechart in Migradoc?
Note: Mixing Migradoc with pdfsharp is an issue becos charts appear in between document, so every time to insert the chart we need to render the document. Also it causes loss to the functionalities like page numbering, content of table etc.

Author:  TH-Soft [ Mon Aug 27, 2018 5:54 am ]
Post subject:  Re: Pie chart support in MigraDoc

There are different ways to mix PDFsharp and MigraDoc.
You can use PDFsharp to create a PDF with a pie chart and use that like an image in a MigraDoc document, not losing page numbers, headers, footers.

I do not know which chart types are available with MigraDoc.

Author:  Benny [ Mon Aug 27, 2018 9:45 am ]
Post subject:  Re: Pie chart support in MigraDoc

Hi,

Thanks for your quick reply. That s a good idea. Can you pls hint how to convert a chart object in PDFSharp to bitmap. I tried playing with XGraphics object but can't get bitmap from it.

Thanks & Regards

Author:  Thomas Hoevel [ Mon Aug 27, 2018 10:06 am ]
Post subject:  Re: Pie chart support in MigraDoc

Benny wrote:
I tried playing with XGraphics object but can't get bitmap from it.
AIUI you can get a Graphics object for a bitmap and get an XGraphics object for a Graphics object.
Or use PDFsharp to create a PDF with the pie chart and use that PDF as you would use a bitmap file with MigraDoc.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/