aspose file tools*
The moose likes Applets and the fly likes Warning Message - An Applet Would Like To Print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Warning Message - An Applet Would Like To Print" Watch "Warning Message - An Applet Would Like To Print" New topic
Author

Warning Message - An Applet Would Like To Print

Andrew K.
Greenhorn

Joined: Oct 24, 2002
Posts: 2
I support a web application at work. In this application, I have an applet that prints a report to a local printer. Some people are getting a warning message from Java: "An Applet Would Like To Print. Is This OK?". However, some people are not getting this message.
Do you know how can I turn the message off? I looked at the "Internet Options" in IE 5.5 and I couldn't find an option to turn this off. Any suggestions?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moving to Applets.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16068
    
  21

If you're even getting that message then I suspect that your applet isn't in Java, it's in J++. I'm pretty sure the Java sandbox doesn't permit unsigned applets to print.
You may have a can of worms there, since neither Sun nor Microsoft is going to give you good support on J++, expecially if this applet's using a lot of classes from the com.microsoft package to tap into Windows GDI instead of using AWT. You may either have to rewrite the applet or use Microsoft's .NET conversion tool.


Customer surveys are for companies who didn't pay proper attention to begin with.
Elouise Kivineva
Ranch Hand

Joined: Feb 07, 2002
Posts: 154
I've written an JApplet that prints and I get the same message when I run it with either Navigator or Explorer under W98/2000. I don't know how to turn it off but I certainly didn't write it in J++.
It's not signed either.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Warning Message - An Applet Would Like To Print