Skip to content

Virtuak ZPL Printer - Browser Z** Print  #50

@CMIGIT

Description

@CMIGIT

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions