PDF File Writer Class Library - Author Uzi Granot
PdfChart Constructor |
PDF chart constructor
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public PdfChart( PdfDocument Document, Chart MSChart )
Parameters
- Document
- Type: PdfFileWriterPdfDocument
Document object parent of this chart. - MSChart
- Type: System.Windows.Forms.DataVisualization.ChartingChart
.NET Chart object.

It is the responsibility of the calling program to release
the resources of the input chart object. After PdfChart
is commited to the PDF file

// create chart Chart MyChart = new Chart(); // build chart // ... // ... PdfImageControl ImageControl = new PdfImageControl(); ImageControl.SaveAs = SaveImageAs.IndexedImage; PdfChart MyPdfChart = new PdfChart(Document, MyChart, ImageControl); MyPdfChart.CommitToPdfFile(); MyChart.Dispose();
