This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Printing to a Printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Printing to a Printer" Watch "Printing to a Printer" New topic
Author

Printing to a Printer

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Scenario : Im running a CGI application on a Windows NT Server that is basically designed to allow customers to shop on-line (sound familiar ?). One of the HTML pages generated displays the Shopping Cart contents (including SKU number, quantity, price, description, etc..,).
Question : I was wondering if there was a way I could allow the user to click a button on the page to print the shopping cart contents? The trick is that I want to allow the information to be passed directly to the user's local (client)default printer (without browser print dialogs and without having to display a 'Printable' page). I have thought of using Javascript but it doesnt come close to accomplishing this and, also, Java. Due to Java's "Sandbox" that would apply to this applet, it doesnt look like Im able to create a Print Job or do any type of file maintenance anyway (I think). Any suggestions to whether I could still use Java and/or Javascript in any way or if I could use some other type of scripting language (as it has to run on the client-side)? Thanks for any help anyone can give.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing to a Printer
 
Similar Threads
Accessing a managed bean directly
Printing to a Printer
Printing to a Printer
Printing a web page using the Printable class
shopping cart using Javascript?