ExportLayer

image\bltlrgss.gif Editions  image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The ExportLayer transaction saves a layer as a new document using the specified parameters, without changing any of the properties of the existing layer.

Type XTYP_EXECUTE

Syntax [ExportLayer(docwinID, layerID, saveas, "fileName", "layerLabel", checkExistence, formatID, rotation)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

identifier of the layer to export

saveas

BOOL

0

1

use existing name

use fileName

fileName

string

file name including path to save the layer under

layerLabel

string

label, maximum 80 characters

checkExistence

BOOL

0

1

do not check

check for existence of file with the same name

formatID

WORD

0

File Format IDs

keep current format

identifier of the file format to use. See Remarks.

rotation

WORD

-1
0 | 1 | 2 | 3

current rotation.
0 | 90 | 180 | 270 degrees counter-clockwise. Only applies to raster images.

Remarks

You can use GetFormatList to obtain a list of valid raster formats for formatID. FormatID is ignored if no fileName is specified.

Release information

Added in Release 3.50.

See also

Exporting pages and layers