IMap.SaveMetafileToFile

Syntax

SaveMetafileToFile(

FileName: String;

Type: GxEmfType;

Width: Integer;

Height: Integer;

Dpi: Double);

Parameters

FileName. Path to the file to save.

Type. Type of saved metafile.

Width. Image width.

Height. Image height.

Dpi. Resolution (pixels per inch).

Description

The SaveMetafileToFile method loads a map to a metafile of the specified type.

Comments

The method loads map to an EMF file (*.emf).

Example

Executing the example requires an express report with the EXPRESS identifier.

Add links to the Drawing, Express, Map, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Map: IMap;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    Map := Express.Map.Map;
    Map.SaveMetafileToFile("C:\img", GxEmfType.EmfOnly, 600600300);
End Sub UserProc;

After executing the example the report map is loaded to a metafile.

See also:

IMap