Comments (22)
The latest release forces US English when formatting the label sizes for the Labelary API.
from virtual-zpl-printer.
Hello everyone - I have the same problem. It doesnt matter which printer configuration, which label sizes or resolutions I try, and it also doesn
t matter which test label I use, I always get the 'Labelary Error - ERROR: HTTP 404 Not Found' error. I also tested to send ZPL code from the ERP system (D365 SCM) to the virtual ZPL printer, but with the same error message. I use the version 2.3.0. Any help is very welcome!
from virtual-zpl-printer.
Earlier versions had bugs that caused invalid URL's to be formed resulting in 404 errors. Please use the latest version to rule out bugs as the source of the issue.
I uploaded version 3.0.2 that contains a new menu option to test Labelary connectivity.
from virtual-zpl-printer.
Hi Daniel! Thanks a lot for your reply. I talked to my IT-department and ask for help. So they updated the Version of the Virtual ZPL-Printer to Version 3.0.2. They also updated the .net as you described on github. Then I restarted my computer and tried it again, but with the same 404 error message (with test from the ERP system to the printer). Then I tried to use the 'Test label' function within the Virtual ZPL printer but without success. I always get the 'HTTP 404 Not found' error, no matter which 'Test Label' settings I use (4x6 USPS, 2x2 Product label, 4x6 Shipping label). Can you give me another tip what I can do to solve that problem?
from virtual-zpl-printer.
Try these:
- Click the Connection menu option and select Test Labelary. Post the screenshot of those results here.
- Open a browser and enter the URL http://api.labelary.com/v1/printers. You should get a 405 error with the following result:
ERROR: HTTP 405 Method Not Allowed
.
from virtual-zpl-printer.
hello Daniel,
with 3.0.2 it's still KO (404 error when testing)
but the weird thing its that "test labelary" looks fine :
another weird thing, when I compare the "test labelary" output from my computer (which is OK) and the other computer, it's the same informations but not in the same order ?
just a little text to change here (it's edit instead of test) :
thanks for your help
from virtual-zpl-printer.
we had to remove this file after uninstalling the software :
not it's fine !
from virtual-zpl-printer.
It seems to be with and height in the url to labelary, because in some PC, the decimal separator is "," (coma) and not a point "."
from virtual-zpl-printer.
In :
Virtual-ZPL-Printer\Src\Virtual Printer Solution\Labelary.Service\LabelService.cs
After (line 110)
if (width <= 15 && height <= 15)
{
string url = $"{this.LabelServiceConfiguration.BaseUrl}/{labelConfiguration.Dpmm}dpmm/labels/{width:#.##}x{height:#.##}/{labelIndex}/";
url = url.Replace(",", "."); // Add this : Violent but normally no comma in url so complete replacement
from virtual-zpl-printer.
Is your system locale set to use a comma for decimal separator?
from virtual-zpl-printer.
Yes
from virtual-zpl-printer.
I'm already have th issue.
Here is a possible correction, with your code
```
CultureInfo v_CultureInfo = CultureInfo.InstalledUICulture;
NumberFormatInfo v_NumberFormatInfoPoint = (NumberFormatInfo)v_CultureInfo.NumberFormat.Clone();
v_NumberFormatInfoPoint.NumberDecimalSeparator = ".";
string widthString = width.ToString("#.##", v_NumberFormatInfoPoint);
this.Logger.LogDebug("The Width parameter is '{value}'.", widthString);
string heightString = height.ToString("#.##", v_NumberFormatInfoPoint);
this.Logger.LogDebug("The Height parameter is '{value}'.", heightString);
from virtual-zpl-printer.
Please describe the issue with more detail. Do you have logs? What are your current culture settings?
from virtual-zpl-printer.
I still have the same issue.
height and width always have commas when transforming to string.
I propose this code to correct, to force decimal separator.
Note that you can set "v_NumberFormatInfoPoint" in static and compute only once.
from virtual-zpl-printer.
I need to be able to reproduce the issue to correct it properly. I have no way of ensuring the code change corrects the issue . Please provide enough details to reproduce the issue.
from virtual-zpl-printer.
This is my config for en-US
from virtual-zpl-printer.
One of the tests I ran was to change my configuration for us-EN the same as above and I get proper operation. Can you provide more information such as what other language are you running, which one is primary? Also, is the log generating? Can you attach the log file?
from virtual-zpl-printer.
May be you can reproduce the issue if you change your regional settings to set comma in decimal separator and space for thousand separator.
Then you configure the printer with paper in centimeters, and setsize to 10cm x 15cm.
You should see, that height and width after convert in string have comma and not point ;-)
from virtual-zpl-printer.
That is the test I ran before publishing. I also ran it again after your post and it passed. I am still unable to reproduce.
from virtual-zpl-printer.
Good afternoon. I have the same problem. I set the size in millimeters. 25х40. The label is not displayed, moreover, the program crashes. The localization is Ukrainian. If you convert the entered millimeters to inches, you get the following:
And, accordingly, the print does not go. The output image is of the following type:
If you convert the settings to inches and align to an integer, it starts working.
OS: win 11
locale: Ukrainian
If you need some logs, say me whare can i find it.
P.S.: I have find it!
Virtual-ZPL-Printer-Log202402161216.txt
In addition, the program crashes after an unsuccessful attempt to print a label.
from virtual-zpl-printer.
THK! in 3.2.0 no more this problem! But crush...
from virtual-zpl-printer.
It's ok with 3.2.1
from virtual-zpl-printer.
Related Issues (20)
- InvalidOperationException HOT 2
- Custom file naming for virtual ZPL printer HOT 2
- Sizes in millimeters or centimeters not saving correctly HOT 2
- Labelary service error HOT 15
- Test windows not working propelly (can't paste or add enters) HOT 3
- Add custom endpoint instead http://api.labelary.com/
- Print settings takes into account regional formatting HOT 1
- Save as PDF HOT 2
- Print ZPL Bug HOT 5
- Add Usage Instructions HOT 3
- Custom fonts usage and save to PNG HOT 2
- SQLite Error 14: Unable to open database file HOT 3
- Send recived image to other printer HOT 1
- Error when remove all printer HOT 2
- Virtuak ZPL Printer - Browser Z** Print HOT 4
- VZPL crush after printing HOT 8
- Additional option to use... HOT 7
- Grid and background image in preview
- [IDEA] What about a `Virtual-ESC/POS-Printer`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-zpl-printer.