Problem with Counter variable and XML specification

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Johannes Thom
Newcomer
Posts: 3
Joined: Wed Jan 30, 2019 5:41 pm

Problem with Counter variable and XML specification

Post by Johannes Thom » Thu Feb 07, 2019 7:50 am

Good morning,

i've a problem with my "Counter1" variable in my label file. My goal is to print labels with a number which should be incremented on each label. The information on the label comes from a xml file. The xml file is processed by the Triger of the Automation service. This works if i add a Counter1 variable, configure it (serialization properties) and print the content via textfield component. But how could i setup the property values with a xml file?

I've read the appropriate chapter in the nicelabel automation book and found this on page 75:

Code: Select all

<Variable>
	<Name>barcode</Name> 
	<Description></Description> 
	<DefaultValue></DefaultValue> 
	<Format>All</Format> 
	<CurrentValue></CurrentValue> 
	<IncrementType>None</IncrementType> 
	<IncrementStep>0</IncrementStep> 
	<IncrementCount>0</IncrementCount> 
	<Length>100</Length> 
</Variable>
But this doesn't work for me. All parameters are ignored and instead of the xml properties the automation manager uses the "hard coded" properties from the label file. Can you post an example for me? And by the way: What properties are allowed for the <IncrementType>. I actually didn't find those information in the handbook.


Greetings
Johannes Thom

User avatar
Kyleodonnell
NiceLabel Support
NiceLabel Support
Posts: 224
Joined: Mon Aug 28, 2017 3:07 pm

Re: Problem with Counter variable and XML specification

Post by Kyleodonnell » Thu Feb 07, 2019 2:18 pm

Johannes,

We recommend opening a support case https://www.nicelabel.com/support/technical-support the technicians will need your files (.misx, label, XML file)

Post Reply