Previous topic

PageSaveAsBitmapEx

Next topic

PageSetBackgroundPageName

This Page

PageSaveAsMetafileΒΆ

PageSaveAsMetafile creates a Windows Meta File (.WMF) or a Enhanced Metafile (.EMF) from the given page.

bool = PageSaveAsMetafile(hPage, ssFileName)
bool = PageSaveAsMetafile(hPage, ssFileName, rsScale)
bool = PageSaveAsMetafile(hPage, ssFileName, rsScale, bEMF)
bool = PageSaveAsMetafile(hPage, ssFileName, rsScale, bEMF, bSetViewPort)
bool = PageSaveAsMetafile(hPage, ssFileName, rsScale, bEMF, bSetViewPort, nClipFlag)

Return Value

bool TRUE (1) if the file is created successfully; otherwise FALSE (0).

Parameters

hPage

Identifies the page.

ssFileName

ssFileName is the name of the Windows Meta File.

rsScale

rsScale is a scale factor to change the size of the Windows Meta File. The range of the factor is 0.1 to 3.0 (1% - 300%). If the parameter is not specified, the value 1 is used.

bEMF

If bEMF is TRUE (1), the page will be saves as an Enhanced Metafile .EMF. Default value is FALSE (0).

bSetViewPort

If bSetViewPort is TRUE (1) the view port is set. This parameter is no impact on EMF files. Default value is TRUE (1). Some programs can only display WMF files where the viewport is set and vice versa.

nClipFlag

Specifies how the page size is calculated:

Value Description
0 Boundig Box: Rectange enclosing all page elements. (Default value)
1 Boundig Box: clipped at the page edge.
2 Page Size.

History

Version Description
5.3.0 New parameter nClipFlag.

id-533873