This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 832
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Printing to a Printer
 
It's not a secret anymore!