WebChartControl.ExportToImage(String, ImageFormat) Method
Creates an image file in the specified format from the current web chart and outputs it to the specified path.
Namespace: DevExpress.XtraCharts.Web
Assembly: DevExpress.XtraCharts.v19.2.Web.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
filePath | String | A String containing the full path to where the image file will be created. |
format | ImageFormat | A ImageFormat value representing the format in which the chart is exported. |
Remarks
This method overwrites any files present at the specified path that have the same name without warning. Note that an appropriate extension has to be specified in the path. The image format should be specified by the format parameter, for instance, ImageFormat.BMP. After creating an image file, the chart can be displayed in an appropriate application.
See Also