samuraiza / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

I am getting this error 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'append' #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I added java script print() inside script block
2.I run my application clicked print button
3.It gives this error as mentioned above.

What is the expected output? What do you see instead?
The expected output is to print which is I given in append() and print()execute 
successfully, instead I'm getting this error "0x800a01b6-Javascript runtime 
error: Object doesn't support property or method 'append("epl content")' and 
'print()'

What version of the product are you using? On what operating system?
I'm using the latest version
My operating system is Windows 8, 64 bit os

Please provide any additional information below.
Here I've attached the screenshot of my error.

In my application applet loaded successfully, and I'm trying to call 
append('epl content') and print() both gives object doesn't support error.

Original issue reported on code.google.com by bkrishb...@gmail.com on 8 May 2014 at 6:33

Attachments:

GoogleCodeExporter commented 9 years ago
This means the applet has not loaded correctly.

Can you go to this page and let me know if it works?

http://www.java.com/en/download/uninstallapplet.jsp

Original comment by tres.fin...@gmail.com on 8 May 2014 at 12:55

GoogleCodeExporter commented 9 years ago
Yes the above link works, but I can not call append() or print() from java 
script side, here I'm getting error.

Original comment by bkrishb...@gmail.com on 8 May 2014 at 3:20

GoogleCodeExporter commented 9 years ago
See if this live demo works:

http://demo.qzindustries.com

The free version is crippled due to Java's default security settings.

If this works, try getting the free version working just the same as the demo 
link.  Once that's working you can troubleshoot the differences and hopefully 
resolve your issue.

Premium subscribers get the trusted version as well as remote development 
assistance via WebEx, if interested.

-Tres

Original comment by tres.fin...@gmail.com on 8 May 2014 at 3:25

GoogleCodeExporter commented 9 years ago
Here, I can able to use the below mentioned option,
a) Detect printer,
b) List All Printer,
c) Use Default Printer
but remaining I can not use.

When I hit Print EPL button message shows as like "Successfully sent print data 
to zebra queue". Then I press "Ok" button to close the message box.
Then I went to see print queue, here shows as screenshot(img3), but it doesn't 
print it shows only printing in print queue.
To get better information I've attached the screenshot kindly refer those 
images.

Original comment by bkrishb...@gmail.com on 9 May 2014 at 5:58

Attachments:

GoogleCodeExporter commented 9 years ago
Kindly help me to print the EPL file in zebra printer.
Actually I am lacking for specifying the jar file in archive and class file in 
code.
So I've included the applet, java script and folder structure here.

My applet code is,
<applet id="qz" archive="./qz-print/dist/qz-print.jar" name="jzebra" 
code="qz.PrintApplet.class" width="55" height="55">
            <param name="jnlp_href" value="qz-print_jnlp.jnlp">
            <param name="cache_option" value="plugin">
            <param name="disable_logging" value="false">
            <param name="initial_focus" value="false">
        </applet>
My javascript ocde is,
   function print() {
            var qz = document.getElementById('qz');
            if (null != qz) {
                qz.append('A37,503,0,1,2,3,N,PRINTED USING QZ-PRINT\n');
                qz.print();
            }
            var qz1 = document.jzebra;
            if (null != qz1) {
                qz1.append('A37,503,0,1,2,3,N,PRINTED USING QZ-PRINT\n');
                qz1.print();
            }
        }

My folder structure is,

WebApplication(Root folder)
   Jzebra(Sub folder)
      WebForm1.aspx
      qz-print
         dist
           qz-print.jar
         build
            classes
                qz
                  PrintApplet.class

Original comment by bkrishb...@gmail.com on 9 May 2014 at 6:49

GoogleCodeExporter commented 9 years ago
If you are using IIS, you probably have JNLP file extension blocked.  Allow it 
per these instructions:

https://code.google.com/p/jzebra/issues/detail?id=171

Original comment by tres.fin...@gmail.com on 16 May 2014 at 4:44

GoogleCodeExporter commented 9 years ago
Also, please post the details about your printer to make sure it is compatible 
with the EPL print format.

Original comment by tres.fin...@gmail.com on 16 May 2014 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by tres.fin...@gmail.com on 26 Aug 2014 at 12:33