BTXML issue
I have a simple integration I'm trying to get working with a template that has a single textbox on it. I have a webapp that generates the BTXML request with a value to print in the textbox. When I run the XML generated using the Test BTXML Action in the Integration Builder, the label prints with the data from the XML file. When I drop the XML file into the scan directory, the label prints with the Embedded Data from the Data Source instead of the data from the XML file.
The embedded data is set to "Sample Text".
Here is the BTXL I am using:
<?xml version="1.0" encoding="UTF-8"?>
<XMLScript Version="2.0">
<Command Name="Job1">
<Print>
<Format>E:\BarTenderAutomation\Labels\BlankLabel.btw</Format>
<NamedSubString Name="LabelText">
<Value>This is a test</Value>
</NamedSubString>
<PrintSetup>
<Printer>ITDesk</Printer>
<IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
</PrintSetup>
</Print>
</Command>
</XMLScript>
When I print using the "Test BTXML" option, it prints "This is a test".
When I drop the same file into the scan directory, it prints "Sample Text".
Any idea on how I can debug this, or any ideas on what I might have missed in my integration config? I'm assuming that since it does print correctly as a test, the BTXML is correct.
BarTender is a new install - 11.3/206587 running on Windows 2022 build 20348. Server is up to date on updates as of 7/16.
Best regards,
Greg Groth
-
Hi Gregory,
I was able to create a test file integration using your script, and only changing the label file path and printer name. I was able to successfully print using the data in the XML script.
- Make sure that your "NamedSubString" value is named correctly on the label. The named data source needs to be typed out exactly how it is in the script.- Also make sure that your integration is indeed using the "Print BTXML Script" action to print and not a normal "Print Document" action.
If you aren't able to get this to work, you may want to open up a ticket with technical support if you have active maintenance.
0 -
Gregory Groth
★ BarTender Hero ★
It was the action. Sorry, I was trying to set up the integration from memory (which I think was 8 years ago).
Best regards,
Greg Groth
1
Please sign in to leave a comment.
Comments
2 comments