GetFormatProperties Tag

ClosedDescription

Enables you to discover the variables (Named Data Sources) available in a BTW file.

ClosedSyntax

<GetFormatProperties>

<Format>...</Format>

</GetFormatProperties>

Where ... is replaced with the name and path of the BarTender document.

ClosedChild Elements

The following child element tags are supported.

Tag

Required/Optional

Description

Format

Optional

Sets the BarTender document whose named data sources are exported. If not included, BarTender exports the currently open document.

ClosedParent Tag

<Command>

ClosedResponse

Each time a <GetFormatProperties> command is passed to BarTender, an XML response is generated. This response contains user, server and command information followed by the <GetFormatProperties> command which contains all the returned named data source information.

<?xmlversion="1.0"encoding="utf-16"?>

<ResponseVersion="2.0"AppName="BarTender"AppVersion="2022 R6" AppVersionId="1130" AppVersionMajor="11" AppVersionMinor="30" AppVersionBuild="233295" AppInstancePid="22604"AppInstanceGUID="{A50B0C4A-7307-472B-9533-0AD51B15BA30}">

<User>Administrator</User>

<Server>MyServer</Server>

<CommandName="Job1">

<GetFormatProperties>

...

</GetFormatProperties>

</Command>

</Response>

ClosedRemarks

The <GetFormatProperties> tag is the root element encapsulating all format property details. The following tags, returned inside the <GetFormatProperties> tag in a response, provide details about the document data sources.

ClosedExample

<?xmlversion="1.0"encoding="utf-16"?>

<XMLScriptVersion="2.0">

<CommandName="Job1">

<GetFormatProperties>

<Format>Label1.btw</Format>

</GetFormatProperties>

</Command>

</XMLScript>