ExportToFile(FileName: String; FormatTag: String);
FileName. Name of the file, to which the object is exported.
FormatTag. Format of the file, to which the object is to be exported. It is possible to export to the following formats:
bmp.
png.
jpg.
gif.
tiff.
The ExportToFile method exports a workspace into a file of the specified format.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
Exp: IWxViewExporter;
Begin
view := ws.CreateView;
Exp := New WxViewExporter.Create;
Exp.WxView := view;
Exp.ExportToFile("C:\WS.gif","gif");
End Sub UserProc;
After executing this example the workspace is exported into the WS.gif file.
See also: