Occurrence Tag

ClosedDescription

Sets the trigger for the media handling action.

ClosedSyntax

<Occurrence>Value</Occurrence>

Where Value can be set to one of the following:

ClosedParent Tag

<MediaHandling>

ClosedRemarks

The <Occurrence> tag determines when a media handling action will be performed. Some selections, such as btHMAfterNumberOfLabels, require additional information (in this case, the desired number of labels to print before performing the action.)

<Occurrence> is an optional tag that is used with the <Print> and <FormatSetup> commands when the <MediaHandling> tag is included in the script.

ClosedExample

<?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)