This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing from an applet..  RSS feed

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using the java.awt.print package to print pages from my applet to a clients printer..
when i click on print, the print dialog comes up fine however when i click yes for print nothing happens.. instead I see this on the browsers status pane..
"Opening http://localhost/META-INF/services/javax.print.PrintServiceLookup"
I do not have this META-INF directory on my system so where why is it looking in there.. help anyone?? if you've come across this before.. thanx in advance..
 
Charlie Boss
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok,
so i did more research and the print api automatically calls javax.print.PrintServiceLookup to search for available printers. I'm still confused on how it works though since my applet still pulls a print dialog but doesn't print anything.. i even looked at the print managers log and its not sending anything to the printer..
Do any of you actually have a applet that can print?? i'm connected to a network printer..
please help
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Charlie,
Try checking your browsers Java console. You might be having a security exception because Applets are restricted from printing without being signed and asking the user permission ...
Regards,
Manfred.
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!