PrintToFileLicense Tag

ClosedDescription

Sets the print license that is used to print the document to a file.

ClosedSyntax

<PrintToFileLicense>Value</PrintToFileLicense>

Where Value equals a valid print license.

ClosedParent Tag

<PrintSetup>

ClosedRemarks

<PrintToFileLicense> is an optional tag that can be used within the <PrintSetup> tag of a <Print> command.

<PrintToFileLicense> is required and must contain a valid print license value when you set the <PrintToFile> tag to true, otherwise the print job will fail. You can obtain the print license value from one of BarTender's client print modules; the ActiveX control, Java Applet, or the Web Printing Service. For an example of how to interface with the Java Applet and Web Printing Service to generate a print license in a web application, refer to Printing Label Formats to a File in the BarTender .NET SDK help pages for the Print Engine API.

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>

<PrintSetup>

<PrintToFile>true</PrintToFile>

<PrintToFileLicense>printLicense</PrintToFileLicense>

<PrintToFileName>Output.prn</PrintToFileName>

</PrintSetup>

</Print>

</Command>

</XMLScript>

ClosedRequirements

BarTender 2016 and later versions.