Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printer not accepting Job #36

Closed
GoogleCodeExporter opened this issue May 25, 2015 · 10 comments
Closed

Printer not accepting Job #36

GoogleCodeExporter opened this issue May 25, 2015 · 10 comments

Comments

@GoogleCodeExporter
Copy link

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 cccchi...@gmail.com on 22 Dec 2011 at 7:06

Attachments:

@GoogleCodeExporter
Copy link
Author

I have used the jZebra ,but jZebra also throwing the same problem ..Please 
suggest me some solution.

Original comment by cccchi...@gmail.com on 22 Dec 2011 at 7:07

@GoogleCodeExporter
Copy link
Author

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 tres.fin...@gmail.com on 22 Dec 2011 at 5:43

@GoogleCodeExporter
Copy link
Author

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 cccchi...@gmail.com on 27 Dec 2011 at 7:03

Attachments:

@GoogleCodeExporter
Copy link
Author

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 tres.fin...@gmail.com on 27 Dec 2011 at 2:50

@GoogleCodeExporter
Copy link
Author

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 cccchi...@gmail.com on 28 Dec 2011 at 6:08

Attachments:

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 tres.fin...@gmail.com on 28 Dec 2011 at 2:12

@GoogleCodeExporter
Copy link
Author

Thanks tres.
your advice really helped me.

-Chirag

Original comment by cccchi...@gmail.com on 29 Dec 2011 at 2:20

@GoogleCodeExporter
Copy link
Author

Closing bug and marking bug as invalid, as bug report has nothing to do with 
jzebra project.

Original comment by tres.fin...@gmail.com on 31 Dec 2011 at 2:20

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 6:05

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant