Is there any API for parsing ZPL, Zebra Stored Format, files?


I have seen some good functions to print fields, on a template file, like

   FormatUtil.PrintStoredFormat

Where you send in pairs of field number and field value. I have the opposite problem, I want to read all the fields and names form a ZPL template file, zebra stored format. Is there any API for that? Like a get field and you get a dictionary with all field numbers and field name pairs. (not the value of course, but the friendly name of the field, if it exists in the file).

Dmitry Prokhorov
Hello Bjorn,Seems there is

Hello Bjorn,

Seems there is FormatUtil.GetVariableFields Method that could be used to obtain field number/name pairs from format.

You need to read your ZPL file to string variable and then send this string value as a parameter to mentioned method.

Hope it helps.

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Bjorn, Dmitry is right

Hi Bjorn, Dmitry is right about the function to use.  I wanted to share a sample of it's use: LinkOS-Xamarin-Samples/FormatView.cs at ZSDK_DevDemos · Zebra/LinkOS-Xamarin-Samples · GitHub

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments