SaveLayoutToMetafile()

Summary

Saves layout graphics to a Windows Enhanced metafile.

Syntax

SaveLayoutToMetafile(string figure_name, string emf_name)

Argument Contents
layout_name The name of the layout window whose contents are to be saved as a metafile. If figure_name is null, the current figure will be saved
emf_name The path and/or filename for the Windows Enhanced metafile to be created

Notes

  • If only the file name is given, the .emf file is saved to Maptitude's program directory.

  • The output .emf file is a "placeable" metafile, with the header required by most applications that read metafiles.

Example

SaveLayoutToMetafile(, "newlayout.emf")

Error Codes

Error Type Meaning
Error The filename is invalid or could not be created
NotFound The specified layout does not exist

See Also

Function Summary
CopyLayoutToClipboard() Copies a layout to the Windows clipboard
SaveLayoutToBitmap() Saves the layout image as a Windows bitmap
SaveLayoutToJPEG() Saves a layout image as a JPEG compressed file
SaveMapToMetafile() Saves map graphics to a Windows Enhanced metafile