porrey / virtual-zpl-printer Goto Github PK
View Code? Open in Web Editor NEWAn ethernet based virtual Zebra Label Printer that can be used to test applications that produce bar code labels.
License: GNU Lesser General Public License v3.0
An ethernet based virtual Zebra Label Printer that can be used to test applications that produce bar code labels.
License: GNU Lesser General Public License v3.0
I ran the installer and was able to get the active printer started, but I don't know how to make my applications recognize it as a ZPL printer. Are there additional steps?
Hello
Trying some test prints today and I am getting a Labelary service error "Not Found". Is your application using the labelary API? There may have been a recent update. Thanks
Hello,
The application sent an error when trying to print one ZPL
but in another viewer is working fine
this is the ZPL
Exist a log for checking the issue ?
Thanks
it would be very useful
http://escpos.atwebpages.com/base64html.php
Look at that web service, i am testing this way with jquery
$.post('http://escpos.atwebpages.com/base64html.php',{esc:btoa(esc_pos_raw_data),width:344}).done(function( data ){
console.log( "Data Loaded: " + data );
addLabel(data)
});
You send esc/pos data as raw text on base64 encoding, and returns the label on base64 html
When you remove all printer => you can't add new printer
When you launch the app
==> Sequence contains no elements
When editing printer configuration and setting the Label Height/Width settings, the program takes into account the system locale regional format settings.
So if the windows regional format uses comma as a decimal separator, it will only allow to enter Label Height/Width with a comma.
So label height 4,5 instead of 4.5.
The program then uses the value with a comma in the API URL it sends Labelary and comes back with a 404 response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A valid print label.
Screenshots
Desktop (please complete the following information):
Describe the bug
When you set the label in millimeters this does not save correctly
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
** In inchs works fine **
THK you for your soft!
But it crush every time after printing...
v 3.2.0
Win 11
I print with this code:
^XA
^LH0,0
^CI28
^FO10,20^A0N,25,20^FDСеча (Стерильний контейнер)^FS
^FO10,45^A0N,25,20^FDЛубніна жін. 07.10.1984^FS
^FO10,70^A0N,20,18^FDКсенія Макарівна^FS
^BY2,3,40
^FO60,100^BCN,50,N,N,N,A^FD002463^FS
^FO95,160^A0N30,20^FD002463 ^FS
^XZ
or any other text on this code....
No information about crash in logs, but I add it.
Virtual-ZPL-Printer-Log202402180032.txt
In addition, there is an error in the program window after launch:
Thank you in advance for solving the problem!
Could you add a few options? Here is what I would like to see:
And what about translation to other langs? Can translate to Ukrainian.))
Thank you in advance for your work!
Is your feature request related to a problem? Please describe.
When you are testing labels with alot of data the api can't response,
Maybe if you have a custom endpoint with self server can change the endpoint to get the labels,
Describe the solution you'd like
Add option to change the api endpoint
Currently, the virtual ZPL printer uses a default file naming convention when saving print jobs as .png files. However, it would be useful to have the ability to pass a custom file name to the virtual printer, so that the generated .png files can be easily identified and organized.
This feature will be useful for applications that need to generate multiple ZPL files with different names.
Hello Porrey I accidentally became aware of your project. I am currently developing a Zebra Tool solution with another developer. Your project would fit well with it. Also you might be interested to work on our project as a whole. https://github.com/BinaryKits/BinaryKits.Zpl
Hello,
thank you very much for your software !
I just installed the lastest version and I have a 404 when testing the label ?
maybe we are not able to contact the labellary api ?
Kind regards,
Simon Poidevin
I tried to make Virtual ZPL Printer work with Z* Browser Print.
On my PC it didn't work, and I found that it was caused by an exception during the stream reading.
I replaced in TcpListenerClientHandler (near line 90)
while ((numBytesRead = stream.Read(data, 0, data.Length)) > 0)
{
ms.Write(data, 0, numBytesRead);
}
by
while ((numBytesRead = stream.Read(data, 0, data.Length)) > 0)
{
ms.Write(data, 0, numBytesRead);
if (numBytesRead < data.Length)
{
break;
}
}
And it seems to work better. But not yet 100%.
Not all labels come in Virtual ZPL Printer, and sometimes I have errors between my web site and Z* Browser Print.
(no error in Virtual ZPL Printer)
(Sorry I'm not familiar enough with Git to make pull requests.)
I don't know if I'm the only one having problems with this configuration with Z* Browser Print.
Is it possible to save the output as PDF instead of PNG?
Describe the bug
When running in debug mode on Visual Studio 2022, an InvalidOperationException occurs with the message:
Unable to resolve service for type 'Diamond.Core.Repository.IRepositoryFactory' while attempting to activate 'VirtualZplPrinter.ViewModels.MainViewModel
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The application should start without any error
**Desktop: **
Thanks for this tool! This saved me a lot of time testing automotive labels. Cheers
Is your feature request related to a problem? Please describe.
I have a Zebra ZD421 printer in which I have installed (downloaded) and mapped some custom fonts:
^CWG,E:DIN000.FNT ^FX Dinot Bold 10
^CWH,E:DIN001.FNT ^FX Dinot Regular 7
^CWI,E:DIN002.FNT ^FX Dinot Bold 14
^CWJ,E:DIN003.FNT ^FX Dinot Light 8
^CWK,E:DIN004.FNT ^FX Dinot 7
^CWL,E:DIN005.FNT ^FX Dinot Bold 9
^CWM,E:DIN006.FNT ^FX Dinot Bold 7
Describe the solution you'd like
I want to preview my label using the fonts installed in my printer, all my labels will use only those fonts, not any of the default fonts from my Zebra printer. Also, my goal is to save the label in png to be able to display in my form of my application, not externally.
Describe alternatives you've considered
If there is any, please advise.
I would like to be able to print a "label" immediately after receiving it on a regular label printer that does not support EPL/ZPL. Will such a feature be implemented, or, is it already available?
Thanks in advance for a positive answer))))
Hi,
First of all, I like to congratulate you for this wonderful tool!
I'd like to share with you a couple of thoughts, just in case you find them interesting...
Sometimes I get a label layout, designed with another more general software.
Transforming it into something I could feed to a ZPL printer means several iterations: ZPL code, preview, compare, change, and back again.
In the label preview, I can think of two features that would speed up that process a lot.
If I were able to set a background image, to compare the printed label with the desired label, and a grid (in dots/mm/inches) to check dimensions, then I think I could do the above process even with my eyes closed.
If you could add that features, I'd be very grateful!
Thanks in advance,
Carlos
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.