SaveMetafileToFile(
FileName: String;
Type: GxEmfType;
Width: Integer;
Height: Integer;
Dpi: Double);
FileName. Path to the file to save.
Type. Type of saving metafile.
Width. Image width.
Height. Image height.
Dpi. Resolution capability (number of pixels per inch).
The SaveMetafileToFile method loads a map to a metafile of the specified type.
The method loads map to an EMF file (*.emf).
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, 600, 600, 300);
End Sub UserProc;
After executing the example the report map is loaded to a metafile.
See also: