Coder Social home page Coder Social logo

porrey / virtual-zpl-printer Goto Github PK

View Code? Open in Web Editor NEW
164.0 15.0 31.0 251.31 MB

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

C# 76.12% Zimpl 23.70% Batchfile 0.18%
zpl zebra virtual network printer labelary viewer ethernet ip tcp

virtual-zpl-printer's People

Contributors

curdbecker avatar porrey avatar porrey-lsc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

virtual-zpl-printer's Issues

Grid and background image in preview

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

InvalidOperationException

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:

  1. Open ZPL Printer Solution.sln with Visual Studio 2022
  2. Rebuild solution
  3. Start in debug mode

Expected behavior
The application should start without any error

Screenshots
image

**Desktop: **

  • OS: Windows 10
  • Visual Studio 2022

Save as PDF

Is it possible to save the output as PDF instead of PNG?

[IDEA] What about a `Virtual-ESC/POS-Printer`

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

404 Error when printing test label ?

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

Add Usage Instructions

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?

Print ZPL Bug

Hello,

The application sent an error when trying to print one ZPL

image

but in another viewer is working fine

image

this is the ZPL

ZPLSample.txt

Exist a log for checking the issue ?

Thanks

Additional option to use...

Could you add a few options? Here is what I would like to see:

  1. Run the program at startup
  2. Minimize to tray.
  3. Tray minimize at startup

And what about translation to other langs? Can translate to Ukrainian.))

Thank you in advance for your work!

Add custom endpoint instead http://api.labelary.com/

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

Error when remove all printer

When you remove all printer => you can't add new printer

When you launch the app
==> Sequence contains no elements

Cooperation

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

Print settings takes into account regional formatting

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:

  1. Go to "Additional date, time & regional settings" in Windows control panel
  2. In "Formats" tab, go to "Additional Settings..."
  3. For "Decimal symbol" enter a comma.
  4. Press OK
  5. Open Virtual ZPL Printer
  6. Edit Active Printer Configuration
  7. Enter Label Height or Label Width with a decimal number (example: 2,5)
  8. Save
  9. Press Start
  10. Press Test and send

Expected behavior

A valid print label.

Screenshots

image

image

Desktop (please complete the following information):

  • OS: Windows 10 Ultimate

Send recived image to other printer

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))))

Sizes in millimeters or centimeters not saving correctly

Describe the bug
When you set the label in millimeters this does not save correctly

To Reproduce
Steps to reproduce the behavior:

  1. Go to labels and create new one
  2. Select millimeters and save
  3. If you close and open again the value is not same has saved

image

image

Desktop (please complete the following information):

  • OS: [Windows 11]
    image

** In inchs works fine **

Custom fonts usage and save to PNG

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.

VZPL crush after printing

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:
image

Thank you in advance for solving the problem!

SQLite Error 14: Unable to open database file

After running the installer for version 3.0.1 and attempting to run the application, the following error appears.

Screenshot 2024-01-11 100649

Dismissing the error (by clicking the OK button), opens the app. However, adding label settings is not possible. This error renders the app unusable.

Screenshot 2024-01-11 101107

Test windows not working propelly (can't paste or add enters)

Describe the bug
If you are using a test windows they seems block some actions,

Can't paste a custom ZPL code, also can't add new lines, the "enter" button seems locked

To Reproduce

  1. Click on test
  2. Write new lines with enter it dosent works
  3. Or you want to pase code with CTRL + V

image

image

Custom file naming for virtual ZPL printer

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.

Labelary service error

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

Great tool

Thanks for this tool! This saved me a lot of time testing automotive labels. Cheers

Virtuak ZPL Printer - Browser Z** Print

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.