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)
Syntax
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.
Remarks
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
Examples
// 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();
See Also