Zebra printing by batch

Hi everyone,

I am trying to create a custom widget in order to print a step in a row using a Zebra printer.
I use a Zebra printer because printing in a row with an ink printer means to have a dialog pop up for every printing. And I use a custom widget because I want to display tables, and I couldn’t find a way to do it with classic ZPL language.

So this is what I came to :


And I have an error message : “Error: TypeError: Failed to fetch”
Can someone help me with this ? Thank you :slight_smile:

I would recommend using Tulip’s native driver for zebra printing and not trying to send requests from inside of a custom widget. I do not think the tulip security model will allow this, but I might be wrong.

Instead, you can use a custom widget to generate a long string of ZPL, pass that string back to Tulip, and then use Tulip’s native drivers to do the print.

It is quite easy to print multiple labels at once if you can format the ZPL as needed. You could probably even do this without a custom widget.

Hi,
Thanks for you answer but I’m not sure how I am supposed to integrate a table with your proposition ?

Hi Fiora, it seems like there isn’t an easy way to dynamically have the ZPL code adjust to the varying length of the information within the table borders you define. I was informed that a custom widget probably will not work since it won’t be able to make the API call, but I will update here if we find another solution to the use case you described during office hours.