This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!