IExport.SaveToMetafile
IExport

procedure SaveToMetafile(Const FileName: WideString);

Type Library
TeeChartx

Description
This method is now deprecated. Please see the IMetafileExport interface for the newer, more complete functionality.

The SaveToMetafile method creates a new WMF file and stores Chart drawing instructions on it. WMF's are created to be "placeable" and prefixed with the Aldus header. That means the image can be resized when embedded in container applications like MS Word. The Metafile format has the advantadge of being smaller than equivalent saved images in bitmap format. Disadvantages are that some Windows GDI (graphic API) calls can't be used with metafiles. Clipping points from chart bounds is not possible with metafiles.

The new EMF format (using the 32bit version) promises to be a much better format supporting more graphic instructions.

Example [Visual Basic]:

This code creates a new WMF metafile:

TChart1.Export.SaveToMetafile "c:\mychart.wmf"