PageSaveAsMetafile creates a Windows Meta File (.WMF) or a Enhanced Metafile (.EMF) from the given page.
Return Value
bool TRUE (1) if the file is created successfully; otherwise FALSE (0).
Parameters
Identifies the page.
ssFileName is the name of the Windows Meta File.
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.
If bEMF is TRUE (1), the page will be saves as an Enhanced Metafile .EMF. Default value is FALSE (0).
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.
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