SaveChartImageToWMF Method

Use this method to save an image of the resulting chart to a Windows metafile (WMF) file.   The image is a capture of the chart as it is at that moment.   This method is equivalent to selecting the Save Image button in the Toolbar, and then selecting the appropriate file type from the Save dialog.

[Visual Basic]
Sub SaveChartImageToWMF(PathAndFilename As String)
[C#]
void XYChartNETCtl.SaveChartImageToWMF(string PathAndFilename)
[C++]
void SaveChartImageToWMF(System::String __gc *)

Parameters

PathAndFilename
Name of the file to save the image to.

Example

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
XYChartNETCtl1.SaveChartImageToWMF("c:\image\xychart08.wmf")  'Save image to file

[C#]
XYChartNETCtl1.SaveChartImageToWMF("c:\\image\\xychart08.wmf");  //Save image to file

[C++]
XYChartNETCtl1->SaveChartImageToWMF("c:\\image\\xychart08.wmf");  //Save image to file

See Also

Methods