Coder Social home page Coder Social logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
I have used the jZebra ,but jZebra also throwing the same problem ..Please 
suggest me some solution.

Original comment by [email protected] on 22 Dec 2011 at 7:07

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
There is not enough information this bug report.

If you would like to include Java source, attach the .java file, not the .class 
file.

What version of the product are you using?
What are you trying to print?
What type of printer?
Can you supply sample code that you are using?

-Tres

Original comment by [email protected] on 22 Dec 2011 at 5:43

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
sorry for not providing enough info. But i really appreciate your quick reply, 
Actually i am not really using jZebra but using its concept (calling java 
function from java script like that..) I am trying to print couple of images 
from web page using applet. 
the code is attached below..when i run hp.html i got error that Printer is not 
accepting job . Even using jZebra from its sample2.html file i got the same 
error.

Thanks in advance,
Chirag Parmar

Original comment by [email protected] on 27 Dec 2011 at 7:03

Attachments:

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Are you calling print directly?  That is a violation of the java applet 
security.  I start a listener thread from init() and then invoke print from 
there.

Original comment by [email protected] on 27 Dec 2011 at 2:50

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
yes ,I am calling the Print Directly But that ask me for the access of printer 
,i also have created signed applet But still the same error comes ,IS it Bug 
with jdk1.7 ?

and how can i start listener thread from init() can you give me example?

Thank you so much tres for your replies.

I have attached the HP.JAVA file which i am using as applet with HP.HTML , if 
you find suitable time  please look at this. 

Thanks,
Chirag

Original comment by [email protected] on 28 Dec 2011 at 6:08

Attachments:

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
[deleted comment]

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Do a printStackTrace on your exception and you'll find the Security Framework 
is throwing the message.





You need to start a thread by the Applet and have external functions pass it 
parameters after it has already started running.

I accomplish this by implementing the Runnable interface and starting a while() 
loop in the overrides run() method.

http://jzebra.googlecode.com/svn/trunk/jZebra/src/jzebra/PrintApplet.java

The result is much more code to do the same thing that you are trying.

Please do not do e.getMessage().  If that's what you want to display to the 
user, that's ok, but you should put a stack trace to the console so that you 
know what's actually causing your error message.

-Tres

Original comment by [email protected] on 28 Dec 2011 at 2:12

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Thanks tres.
your advice really helped me.

-Chirag

Original comment by [email protected] on 29 Dec 2011 at 2:20

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Closing bug and marking bug as invalid, as bug report has nothing to do with 
jzebra project.

Original comment by [email protected] on 31 Dec 2011 at 2:20

  • Changed state: Invalid

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024

Original comment by [email protected] on 22 Aug 2012 at 6:05

  • Changed state: Duplicate

from jzebra.

Related Issues (20)

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.