MediaHandling Tag

ClosedDescription

The top level Media Handling XML tags. The Media Handling tags set BarTender's media handling options.

ClosedSyntax

<MediaHandling>...</MediaHandling>

ClosedChild Elements

The following child element tags are supported:

Tag

Required/Optional

Description

Action

Optional

Sets the media handling actions.

DataItemName

Optional

Sets the name of the data item used as an occurrence.

DataItemType

Optional

Sets the type of data item used as an occurrence.

IgnoreCase

Optional

Sets whether the data item ignores the case value.

NumberLabels

Optional

Sets how many labels are printed if the number of labels is the trigger.

Occurrence

Optional

Sets the trigger for the media handling action.

ClosedParent Tags

<Print>
<FormatSetup>

ClosedRemarks

<MediaHandling> is an optional tag that is used with the <Print> and the <FormatSetup> commands.

ClosedExample

This example demonstrates the <MediaHandling> tag contained within the <Print> command. The <MediaHandling> tag can also be contained within the <FormatSetup> command.

<?xml version="1.0" encoding="utf-8"?>

<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">

<Command Name="Job1">

<Print>

<Format>Label1.btw</Format>

<MediaHandling>

<Action>btMHPageBreak</Action>

<DataItemName>TheDataItemName</DataItemName>

<DataItemType>btMHNamedSubString</DataItemType>

<IgnoreCase>true</IgnoreCase>

<Occurrence>btMHAfterDataChange</Occurrence>

</MediaHandling>

</Print>

</Command>

</XMLScript>

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and higher)

Related Topics