Exports a chart to the specified file in the SVG format.
NuGet Package: DevExpress.Win.Charts
The value defining the path including the file name and extension, where the file should be created.
If a file under the specified file path exists, the new file replaces it.
To show the standard Print dialog, use the ChartControl.Print method. The dialog allows end-users to print the chart, select the printer (if required), specify the range of pages to print, the number of copies, etc.
To display the DevExpress Print Preview use one of the following methods.
|ChartControl.ShowPrintPreview||Creates the print document and displays the Print Preview of the document.|
|ChartControl.ShowRibbonPrintPreview||Creates the print document and displays the Print Preview with the Ribbon toolbar of the document.|
Note that, exporting to raster and vector images is implemented by the Chart and does not require any library.
The chart can be previewed, printed and exported to other formats only if the Printing library is available. Make sure you add a reference to the DevExpress.XtraPrinting.v22.2 assembly.
Also note that chart export to PDF requires the DevExpress.Pdf.Core library to be available.