Coder Social home page Coder Social logo

jzebra's People

Watchers

 avatar

jzebra's Issues

Problem with printing certain characters

What steps will reproduce the problem?
1.^XA^CI28
2.^FO600,50^A0,34,34^FVáäčďéěíĺľňóôőöŕšťúůűüýřžÁÄČĎ�
�ĚÍĹĽŇÓÔŐÖŔŠŤÚŮŰÜÝŘŽ^FS
3.^XZ

What is the expected output? What do you see instead?
Expected output is: 
áäčďéěíĺľňóôőöŕšťúůűüýřžÁÄČĎÉĚÍĹĽŇÓÔŐÖŔŠ
ŤÚŮŰÜÝŘŽ
But I see: 
áäčďéěíĺľ?óôőöŕšťúůűüýřž?ÄČĎÉĚÍĹĽŇÓÔŐÖŔŠŤ
ÚŮŰÜÝ?Ž

What version of the product are you using? On what operating system?
jZebra 1.1.5 on Windows 7 64bit

Please provide any additional information below.
When I create txt file with theese character with utf-8 coding and BOM and I 
send it to printer via "copy file.txt lpt1" everything prints ok.

Original issue reported on code.google.com by [email protected] on 25 Mar 2011 at 12:43

EPL2 Print problem

I Have a LP2844 label printer.
What I like to do is printing a barcode direct on the printer.

I have used zebra tools to test:

N
B1,5,0,3,3,7,40,B,"23423412"
P1

This is working.
Only I can't get it work with jezebra.

Is there a PHP example availible 

Original issue reported on code.google.com by [email protected] on 1 Mar 2012 at 9:25

Internet Explorer 9 Not Properly Loading

What steps will reproduce the problem?
1. Load sample3.html page in IE9
2.
3.

What is the expected output? What do you see instead?
Page displays: jZebra loading, please wait...
If prompted, you may need to click "Allow Blocked Content" or "Always Run On 
This Site".  I expect to see that jZebra loaded.

What version of the product are you using? On what operating system?
Same results with 1.2.0. and 1.2.1.

Please provide any additional information below.
Works with IE8 and chrome.

Original issue reported on code.google.com by [email protected] on 11 Feb 2012 at 1:35

Some windows character encodings break on Linux

What steps will reproduce the problem?
1.  Some DOS special characters do not print in Linux/Unix. Specifically, the 
codepage 437 box/menu characters.  These characters print fine when using 
jZebra with Windows.
http://en.wikipedia.org/wiki/Code_page_437

What is the expected output? What do you see instead?
A DOS line border instead shows as "ÃÄÄÄ" when printed.

Original issue reported on code.google.com by [email protected] on 2 Dec 2010 at 8:21

Star Printer - '0' on the top left of receipt

What steps will reproduce the problem?
1. Generate Star printer command in code behind - ASP.NET
2. Store above command in a session variable
3. Call the command session variable in Javascript, send to printer via jZebra 
printing object

What is the expected output? What do you see instead?
A transaction receipt. The receipt has been produced just fine, but there is a 
extra '0' appears on the top left of the receipt, just above everything else.

What version of the product are you using? On what operating system?
1.2.2

Please provide any additional information below.
We have 2 different printers, EPSON and Star. It prints without any '0' on the 
Epson, but with Star the '0' appears.
Please see link for the image: 
https://docs.google.com/open?id=0Bw8yYuAnXchPWGV0cF9ZdmdRRVNFWXZTd1U0Y215UQ

Original issue reported on code.google.com by [email protected] on 27 Feb 2012 at 10:39

Attachments:

PrintServiceMatcher does not select desired printer

What steps will reproduce the problem?

1. Business I work for has two Zebras. First is named zebra, but the second is 
zebar2. Possibly our clients will have this configuration too.
2. I am providing the applet with name zebra as a printer.


What is the expected output? What do you see instead?

I want to see the zebra printer to be seleected. Instead I see the zebra2 
printer.


What version of the product are you using? On what operating system?

jZebra 1.1.4


Please provide any additional information below.

In PrintServiceMatcher.java the line 56 is responsible for choosing the 
printer. It is using indexOf what is causing the first occurrance of the string 
to be selected. It should be changed to select the exact string.

Original issue reported on code.google.com by [email protected] on 24 Feb 2011 at 4:05

"Silent mode" enhancement

Would like both applet and dialog suppressed for printing with addition of
"silent mode".

Possible "silent=true" parameter.

> Could [we] have a "silent" param?
> If this is set to 1, as the applet loads, it does not display an image
> to click, it just prints the specified config file and does not pop up
> to say it was successful. Instead the only popup would be if the print 
> is un-successful.

Original issue reported on code.google.com by [email protected] on 6 Nov 2008 at 7:55

Default Printer crashes L&F

What steps will reproduce the problem?
1. Open application in desktop mode with no printer containing "zebra"

Result:

Hangs GUI

Workaround:

Start program with a valid printer name:

java -jar "C:\Documents and Settings\Owner\Desktop\jzebra.jar"
printername=microsoft

Original issue reported on code.google.com by [email protected] on 11 Jan 2009 at 4:50

Unable to print in thermal printeron ubuntu 10.04

What steps will reproduce the problem?
1.I am using star TSP100 thermal printer.
2.I followed the instructions in setting up printer in linux from jzebra 
(driver is raw queue).
3.I run the sample.html in mozilla, the printer is detected but no printing 
when you click print buttons.

What is the expected output? What do you see instead?
the test output of zebra

What version of the product are you using? On what operating system?
1.1.0

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Apr 2011 at 8:41

Consider printing/saving to a file

Hi,
Thank you very much for your work.

Is it possible to configure printing output to a file : //hostorIP/myprinter ?

This actually allows to print without configuring the local computer and only 
requires host or IP + myprinter name to be known for printing.

Maybe I missed something but my understanding of Jzebra is that it requires 
EACH computer willing to print to have a printer configured (and reconfigured 
if anything changes).

Printing to a file requires only one computer to be set up.

I hope I make sense. Thank you.


Original issue reported on code.google.com by [email protected] on 5 Nov 2011 at 6:36

List All Printers: Exception in thread "Thread-12" java.util.regex.PatternSyntaxException: Illegal repetition near index 1

What steps will reproduce the problem?
1. Open sample.html
2. Click List All Printers (nothing happens)
3. Look at the Java Console

What version of the product are you using? On what operating system?
Latest version. Through Apache in Firefox on Windows 7

The "Print" button works OK. I have created a printer called "zebra" to test.

Full Java Console output:

03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: jZebra 1.2.0
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: ===== JAVASCRIPT LISTENER THREAD STARTED =====
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: Current printer charset encoding: windows-1252
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: Found 7 attached printers.
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: Printer specified: zebra
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: Printer name match: zebra
03-Feb-2012 09:45:23 jzebra.LogIt log
INFO: Using best match: zebra
03-Feb-2012 09:45:34 jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
03-Feb-2012 09:45:34 jzebra.LogIt log
INFO: Found 7 attached printers.
03-Feb-2012 09:45:34 jzebra.LogIt log
INFO: Printer specified: {dummy printer name for listing}
03-Feb-2012 09:45:34 jzebra.LogIt log
INFO: ===== JAVASCRIPT LISTENER THREAD STOPPED =====
Exception in thread "Thread-12" java.util.regex.PatternSyntaxException: Illegal 
repetition near index 1
\b{dummy printer name for listing}\b
 ^
    at java.util.regex.Pattern.error(Unknown Source)
    at java.util.regex.Pattern.closure(Unknown Source)
    at java.util.regex.Pattern.sequence(Unknown Source)
    at java.util.regex.Pattern.expr(Unknown Source)
    at java.util.regex.Pattern.compile(Unknown Source)
    at java.util.regex.Pattern.<init>(Unknown Source)
    at java.util.regex.Pattern.compile(Unknown Source)
    at jzebra.PrintServiceMatcher.findPrinter(PrintServiceMatcher.java:60)
    at jzebra.PrintApplet.startJavaScriptListener(PrintApplet.java:155)
    at jzebra.PrintApplet.access$000(PrintApplet.java:33)
    at jzebra.PrintApplet$1.run(PrintApplet.java:81)
    at java.security.AccessController.doPrivileged(Native Method)
    at jzebra.PrintApplet.run(PrintApplet.java:76)
    at java.lang.Thread.run(Unknown Source)

I'm evaluating jZebra to see if it can be used in a web-based point of sale 
system.

Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 9:49

Code not working when accesed through javascript

What steps will reproduce the problem?
1. put size of aaplet as height =0, width = 0 (eg:name of applet 
is "myApplet")
2. give a ahref link, which links to a javascript function on samepage 
(eg: onclick="print()")
3. in print(), call the print command of PrintRaw as follows:
document.myApplet.getPrintRaw().print();
(note: we cannot call document.myApplet.print() as the print() finction is 
privately declared in JApplet)

What is the expected output? What do you see instead?
The expected output should be the printed label
Instead i get a exception on webpage
Error calling method on NPObject! [plugin exception: 
java.lang.NullPointerException]

What version of the product are you using? On what operating system?
I am working on windows XP. version of product is 1.0.3.pre4

Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 25 Nov 2009 at 1:50

No sleep parameter = null format exception

Exception thrown when "sleep" parameter is not specified.

Default value should be:
<param name="sleep" value="200">

Copy of Exception:

Exception in thread "Thread-12" java.lang.NumberFormatException: null
    at java.lang.Long.parseLong(Unknown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at jzebra.RawPrintApplet.getParameter(RawPrintApplet.java:99)
    at jzebra.RawPrintApplet.processParameters(RawPrintApplet.java:71)
    at jzebra.RawPrintApplet.run(RawPrintApplet.java:31)
    at java.lang.Thread.run(Unknown Source)



Original issue reported on code.google.com by [email protected] on 5 Jan 2010 at 4:33

Exception in thread "Thread-11" java.lang.NullPointerException

Trying to print PDF, using versions 1.3.1+, I am receiving the following error:
Exception in thread "Thread-11" java.lang.NullPointerException
    at jzebra.PrintPostScript.print(PrintPostScript.java:58)
    at jzebra.PrintApplet.logAndPrint(PrintApplet.java:840)
    at jzebra.PrintApplet.startJavaScriptListener(PrintApplet.java:181)
    at jzebra.PrintApplet.access$000(PrintApplet.java:32)
    at jzebra.PrintApplet$1.run(PrintApplet.java:84)
    at java.security.AccessController.doPrivileged(Native Method)
    at jzebra.PrintApplet.run(PrintApplet.java:79)
    at java.lang.Thread.run(Unknown Source)
Version 1.2.3 and under that support printing PDF actually print the same PDF 
just the margins are incorrect.

Original issue reported on code.google.com by [email protected] on 13 Mar 2012 at 1:41

Printer not accepting Job

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Expected : Print Successfull. 
Obtained : Printer not Accepting Job.

What version of the product are you using? On what operating system? ,on 
windows XP

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 22 Dec 2011 at 7:06

  • Merged into: #55

Attachments:

Add base64 bit ZPL support

The applet should support base64 commands sent directly in to comply with
the UPS shipping protocol.  Requested by Mark Sanborn via Google Chat.

Original issue reported on code.google.com by [email protected] on 5 Jun 2009 at 1:09

Does jzebra work for EPCL

Does jzebra work only for raw EPL/ZPL?
I nedd to work con card printers and i need it for epcl..

Gracias



Original issue reported on code.google.com by [email protected] on 20 Sep 2011 at 10:22

java.lang.ClassNotFoundException : jzebra.PrintApplet.class

I've been successfully using jZebra in my development environment but now that 
I have moved it to the test environment, I get the following java console error 
when loading the html page that contains the applet:

    java.lang.ClassNotFoundException: jzebra.PrintApplet.class
        at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

The HTML code is as follows:

            <div id="divAppletContainer" style="height:1px;width:1px;float:right;">
               <applet name="jZebra" id="jZebra" code="jzebra.PrintApplet.class" archive="/applets/jzebra/jzebra.jar" width="1" height="1">
                  <param name="printer" value="epson">
                  <!-- <param name="sleep" value="200"> -->
               </applet>
           </div>

Any ideas on why it is working in on instance and not another?



Original issue reported on code.google.com by [email protected] on 16 Feb 2012 at 1:22

Printing PDFs without pdf extension?

Is there a way to print generated pdfs that don't have a pdf file extension. 
Example, applet.appendPDF("http://www.example.com/pdf.php?id=1"); throws error 
"Exception occured: This may not be a PDF File" and does not print although it 
is a PDF.

Original issue reported on code.google.com by [email protected] on 13 Mar 2012 at 10:19

Cannot print to virtual printers.

What steps will reproduce the problem?
1. Install either MS XPS or PDFCreator virtual print driver
2. Try to run the samples


What is the expected output? What do you see instead?
Expecting a printed page with some form output. With PDF Creator I get a blank 
page, with XPS I don't even get dialog to save the output as I do with other 
applications.

What version of the product are you using? On what operating system?
1.1.8



Original issue reported on code.google.com by [email protected] on 28 Oct 2011 at 1:03

Printer not found : zebra ZM400

What steps will reproduce the problem?
1. Install the printer ZM400 with de driver generic on USB
2. Load the sample.html file with IE 8 on windows XP
3. And the printer is not found

What is the expected output? What do you see instead?
jZebra Applet 1.2.0

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Feb 2012 at 11:16

Enable use of session cookies

What steps will reproduce the problem?
1. Use appendFile(url) from a webpage where url is protected by  some kind of 
authorization
2. The page that the applet is on can only be accessed when the user is logged 
in
3. call applet.print() from the javascript page

What is the expected output? What do you see instead?
I expect the applet to send get the file from the url and print it.
Instead, the applet does not send the session cookie form the current browser 
context, so the the serve redirects the request to the login page and printing 
fails.

What version of the product are you using? On what operating system?
1.2, OS-X, any browser

Please provide any additional information below.
I would think that when printing from a web application, it is pretty obvious 
that a lot of printing will be done from web pages that require the user to be 
authenticated. It should also be pretty obvious that the file to print will be 
downloaded form the server and that this file also requires the user to be 
authenticated. (After all - if I have downloaded the file separately, there is 
not need for this applet).
It is further pretty often the case that user authentication is done via 
session cookies. So that leads to the simple request that it should be possible 
to tell the applet what my session cookie's name is and to have the applet send 
it to the browser. But, there is nothing in the code that does that.



Original issue reported on code.google.com by [email protected] on 22 Jan 2012 at 6:28

Default sleep for version 1.0.4

If sleep is not specified as applet parameter in jZebra 1.0.4, application
throws exception:

{{{
Exception in thread "Thread-12" java.lang.NumberFormatException: null
    at java.lang.Long.parseLong(Unknown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at jzebra.RawPrintApplet.getParameter(RawPrintApplet.java:99)
    at jzebra.RawPrintApplet.processParameters(RawPrintApplet.java:71)
    at jzebra.RawPrintApplet.run(RawPrintApplet.java:31)
    at java.lang.Thread.run(Unknown Source)
}}}

Original issue reported on code.google.com by [email protected] on 3 Dec 2009 at 10:08

  • Merged into: #14

Printer name mixup when one printer name is a subset of another

What steps will reproduce the problem?
1.  Map two printers on your machine where one is a subset of the other, like 
"Eltron LP2348" and "Desk10 Eltron LP2348"
2.  Try to choose the smaller printer name, "Eltron LP2348" in the example above
3.  Try sending a command or file to the printer

What is the expected output? What do you see instead?
I expect to be able to choose the exact printer I selected, but the other 
printer is assigned to the applet and gets the file in it's print queue.

What version of the product are you using? On what operating system?
version 1.1.7 on windows 7.

Please provide any additional information below.

I see some unused flags in the printServiceMatcher.java file that appear to 
control this behavior, is there a way to access them from Javascript so I can 
specify exact printer name matches only?

Original issue reported on code.google.com by [email protected] on 9 Sep 2011 at 4:10

jzebra - Class not found

Running a web application. Keep the JSP and jzebra.jar file in the same file 
but when page is trying to load the applet throughing an error:


Java Plug-in 1.6.0_24
Using JRE version 1.6.0_24-b07 Java HotSpot(TM) Client VM
User home directory = C:\Users\sthulapp
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class jzebra.RawPrintApplet.class not found.
java.lang.ClassNotFoundException: jzebra.RawPrintApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: jzebra.RawPrintApplet.class



JSP code:
<jsp:plugin type="applet"
            code="jzebra.RawPrintApplet.class"
            width="100"
            height="100">

   <jsp:params>
      <jsp:param name="printer" value="zebra"/>
   </jsp:params>

   <jsp:fallback>
      <p> unable to start plugin </p>
   </jsp:fallback>
</jsp:plugin>


using jzebra1.0.5.jar file

Original issue reported on code.google.com by [email protected] on 5 Apr 2011 at 4:24

Application Error

The application is failing to load with no error output at all. This happens on 
initial load of the sample page. All I get is a message that says "Application 
Failed To Run". Can you point me in the right direction for resolving this?

-Peter

Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 10:43

"Page mode" issue

What steps will reproduce the problem?
1. Whilst running the printer in page mode, the printer seperates each line
by the LF (Line Feed) command which is \n

2. The printer ignores the CR (Carridge Return) command \r.
When a windows user presses the Enter key, it terminates the line with \n\r.

3. When JZebra script checks and builds the commands, it replaces the \n
with \r.

4. This is what causes the error as the printer ignores the \r command and
can not seperate the lines, it appears to the printer as 1 huge line.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 6 Nov 2008 at 7:45

Using Generic text-only printer on Linux

This is not an issue, but an enhancement.

Can I use a Generic text-only printer driver on Linux boxes instead of the "raw 
queue", so other applications can still use the same printer, even if not raw?

For instance, with "lp" I can force a raw print to any "generic" printer with 
"-o raw". Is it possible with jZebra, considering the same works correctly on 
Windows with the "Generic / text-only" driver?

Thanks in advance.

Original issue reported on code.google.com by [email protected] on 9 Oct 2010 at 7:34

jZebra.setEncoding and append64

What steps will reproduce the problem?
1. Print incorrect characters:
   document.jZebra.setEncoding("cp866");
   document.jZebra.append64("0J/RgNC40LLQtdGC");

2. Produce correct printer output:
   document.jZebra.setEncoding("cp866"); 
   document.jZebra.append('Привет');
3.
seems that append64 didn't rely on charset setting by setencoding.

jZebra 1.1.5 sources inspected:
Public void append64(string BASE64) {        try { 
            pr.append(Base64.decode(base64)); 
        } CATCH (ioexception e) {            set(e); 
        } } 

PUBLIC void append(string s) {        try { 
            pr.append(s.getBytes(charset.name()));
        } CATCH (unsupportedencodingexception ex) "
{            LogIt.log(Level.WARNING, "Could not append using specified charset 
encoding: " 
                    + charset + ". Using default.", e); 
            pr.append(s); "
        } } ";

Original issue reported on code.google.com by [email protected] on 28 May 2011 at 6:29

issues in jzebra

hi,

I have configure jZebra 1.0.6 on Windows Xp. I'm facing two problems.

1- How can i print the image file with jZebra 1.0.6 ?
2- My printer is "HP LaserJet 1020". the problem is while i press the print  
button from "sample.html" page, request sent to printer successfully but not 
print any thing. print is fine with my other documents printing. 

please help me to solve above problems. Thank you in advance for you assistance.

Regards,
Faisal



Original issue reported on code.google.com by [email protected] on 6 Dec 2010 at 7:44

Raw Bytes Support

Add support for sendBytes() in base64, Hex and numerical.

Example:

applet.sendByte(27); --> this would send "ESC" key
applet.sendByte("1B"); --> this would send "ESC" key too

Original issue reported on code.google.com by [email protected] on 17 Nov 2009 at 12:29

Applet won't initialize in 1.1.8

What steps will reproduce the problem?
1. copied all files from the 1.1.8 zip file onto my server
2. load any of the sample pages in IE

Not sure what is going on.

Original issue reported on code.google.com by [email protected] on 21 Oct 2011 at 10:16

Parentheses in Printer name

Newer versions on jZebra does not allow you to print from printers with 
parentheses in their name. Version 1.0.9 does. Not sure which version stopped 
allowing this but, newer versions fail to print.

Original issue reported on code.google.com by [email protected] on 15 Mar 2012 at 1:25

PDF Print + Page Setup not ok

I have a Star TSP 100 with which I would like to print out an 70mm receipt. But 
the Pagesetup has to much space on the left and right side which results in a 
very narrow printable region in the middle of the receipt.

Is there a way to change the border on left, right, top and bottom from 2,5cm 
to 0,1cm ~ 1mm ?


Original issue reported on code.google.com by [email protected] on 17 Feb 2012 at 6:13

How do I transfer an image to a buffer in a p120i

What steps will reproduce the problem?
1.I create this statement:
  applet.append(unescape("%1B%50%53%20%30%20%33%30%20.......data....%0D%0A"));
2. applet.print();
3. the printer show this message 'Downloading data' and stay showing it for a 
while
3. Then the printer show a message 'data timeout'

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
jZebra 1.1.7 on ubuntu

to produce the data I separate the image in cmyk (cyan, magenta, yellow and 
black) files. I took the cyan file and extract byte by byte and compress them 
following a procedure made by eltron o zebra.

I don't know what is going on.
Please I need somebody to help me with this.
thanks in advance.

Original issue reported on code.google.com by [email protected] on 4 Nov 2011 at 2:12

Attachments:

Simple list of printers

What steps will reproduce the problem?

1. Call the getPrinters(); method
2. Display it in an alert, for example.


What is the expected output? What do you see instead?

At this moment I am getting the following list:

[Win32 Printer : Send To OneNote 2007,
Win32 Printer : PDF995,
Win32 Printer : Microsoft XPS Document Writer,
Win32 Printer : Fax,
Win32 Printer : \\SERVER2\Epson LQ-680 ESC/P 2,
Win32 Printer : \\SERVER\Kyocera-Mono,
Win32 Printer : \\SERVER\Zebra2,
Win32 Printer : \\SERVER\Samsung CLP-610 Series,
Win32 Printer : \\SERVER\Samsung-Mono,
Win32 Printer : \\SERVER\Kyocera-colour,
Win32 Printer : \\SERVER\Blaster,
Win32 Printer : \\SERVER\Generic / Text Only,
Win32 Printer : \\SERVER\Samsung-colour,
Win32 Printer : \\SERVER\Zebra],\\SERVER\Zebra

The new lines are added by me. The whole text is in one line.
I do not understand from where are the [] brackets coming from, and why there 
is ",\\SERVER\Zebra" at the end after the brackets.

The list of printers is very useful during configuration/setup steps for an 
application. 

The list is too complex. Would there be a possibility to add new method that 
will issue the following list:

Send To OneNote 2007,
PDF995,
Microsoft XPS Document Writer,
Fax,
\\SERVER2\Epson LQ-680 ESC/P 2,
\\SERVER\Kyocera-Mono,
\\SERVER\Zebra2,
\\SERVER\Samsung CLP-610 Series,
\\SERVER\Samsung-Mono,
\\SERVER\Kyocera-colour,
\\SERVER\Blaster,
\\SERVER\Generic / Text Only,
\\SERVER\Samsung-colour,
\\SERVER\Zebra

Again the new lines were added by me. It should be one line.

This would be easier to use in javascript, just one split(",").
I cannot think of a situation where user cares about the "Win32 Printer" string 
at the front. It may be important for Linux, or Mac for something.


What version of the product are you using? On what operating system?

jZebra 1.1.4


Please provide any additional information below.

I have experimented with the code as below:

class PrintApplet {

...

public String getPrintersSimple()
    {
        return PrintServiceMatcher.getPrinterListSimple();
    }

...

}

public class PrintServiceMatcher {

...

public static String getPrinterListSimple() {

        String strPrinterList = "";
        PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);

        for (int i = 0; i < services.length; i++) {
            PrintServiceAttributeSet psa = services[i].getAttributes();
            strPrinterList = strPrinterList + psa.get(PrinterName.class);
            if (i != (services.length - 1))         
                strPrinterList = strPrinterList + "|";
        }

        return strPrinterList;
    }

...

}

Original issue reported on code.google.com by [email protected] on 25 Feb 2011 at 2:37

print "jump"

Hi team,

I have a problem while printing stickers. When I print one sticker, the zebra 
printer prints correctly this sticker but then there is blank sticker that is  
issued from the printer.
I have to print 6000 stickers and I don't want to waste 6000 others!

I have attached my code. 
there is javascript code in imprim.js . Function called is sendToprint.

Any ideas? 

Original issue reported on code.google.com by [email protected] on 13 Oct 2010 at 10:17

Attachments:

Base64 image support

Support appending images in format:

document.jzebra.appendImage("data:image/png;base64,AAAAAAAAA...", "ZPLII");

Original issue reported on code.google.com by [email protected] on 23 Feb 2012 at 4:19

Changing printer

I cannot seem to change printers to print a different document. See code below.
function print2()
{
    printPDF();
    print();
}
function print() {
         var applet = document.jZebra;
            findPrinter('zebra');
             if (applet != null) {
                applet.append("^XA");;
                applet.append("^FO32,10^AdN,0,0^FWN^FH^FDRECIPIENT COMPANY NAMERECIPIENT COMPANY NAMERECIPIENT COMPANY NAMERECIPIENT COMPANY NAME^FS");
                applet.append("^XZ");

                // Send characters/raw commands to printer
                applet.print();
            }
                monitorPrinting();
        }
function printPDF() {
         // Make sure pdf-renderer.jar is in the "./lib" folder
         // Append the PDF
        var applet = document.jZebra;
            findPrinter('hp');
             if (applet != null) {
                applet.appendPDF(window.location.href + "/../sample.pdf");
            }
            monitorAppending2();
      }

Original issue reported on code.google.com by [email protected] on 14 Mar 2012 at 6:35

Sample.html

Attach sample.html for easier applet handling with applet examples inside.

Original issue reported on code.google.com by [email protected] on 6 Nov 2008 at 7:56

Print Spooling Support

Request to allow print spooling (example 5 documents at a time). A reprint for 
larger batch job will reprint all labels, even if only one had issues.

Original issue reported on code.google.com by [email protected] on 13 Aug 2010 at 12:02

Print Error: pstopdffilter/pstocupsraster failed with err number -31000

What steps will reproduce the problem?
1. Printing from the jzebra sample.html file to Zebra Technologies ZTC GK420d 
printer on Mac OS X 10.6.4 on Java 1.6.0_21
2. Pressed Print (and also tried Print base64)


What is the expected output? What do you see instead?
Nothing is printed from the sample.html page. Java console shows printing is 
succcessful and JavaScript message shows "Printed Successfully". But the 
printer queue shows the error: pstopdffilter/pstocupsraster failed with err 
number -31000

What version of the product are you using? On what operating system?
jZebra 1.05
Mac OS X 10.6.4
Java 1.6.0_21 (both 32bit and 64 bit)

Please provide any additional information below.

Tried deleting and adding printer again.
Tried Mac OS X Software Updates
Posted this problem to Zebra themselves, to the Java Programming Forums and to 
the Apple Support Discussion forums, but no replies from anyone.

Original issue reported on code.google.com by [email protected] on 20 Sep 2010 at 3:08

Issues to get jzebra to work with the sample.html

What steps will reproduce the problem?
1. did got jZebra 1.1.3.zip installed it on my server but when I try to open 
the sample html file I get already an error in the java 
applet(https://www.skepr.net/xraw/sample.html) 
2.
3.

What is the expected output? What do you see instead?
that I could use the the sample file to see if it works

What version of the product are you using? On what operating system?
1.1.3 of jZebra, it didn't work on firefox (3.6.13) and internet explorer 
(9.0.730.16406) and have windows 7 as operating system. Java is also the newest 
version 1.6.0_20-b02

Please provide any additional information below.

java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file 
jzebra/PrintApplet
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 1008813135 in 
class file jzebra/PrintApplet

Original issue reported on code.google.com by [email protected] on 1 Feb 2011 at 9:47

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.