wood burning stoves*
The moose likes JSP and the fly likes How to restrict Multiple Copies while printing with Print Option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to restrict Multiple Copies while printing with Print Option" Watch "How to restrict Multiple Copies while printing with Print Option" New topic
Author

How to restrict Multiple Copies while printing with Print Option

k sabeerdeen
Greenhorn

Joined: Mar 11, 2010
Posts: 14


hi experts..

My need is to print my application's response jsp page, and it should be printed with only one copy.

i need to achieve atleast any one of the below given points:

0) Direct print without Print dialog box & Save as option
1) Print dialog should be buypassed
2) Multiple copies restiction.
3) Disable no of copies in print option


Browser : IE
OS: Windows
Technology: Javascript / Ajax / Jquery


Kindly suggest. Thanks in advance




Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

What problem are you trying to solve by limiting the printing to only one copy. You do realize that one print can be photo copied later on right?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
k sabeerdeen
Greenhorn

Joined: Mar 11, 2010
Posts: 14

Dear Maneesh,

You are right. My requirement is response jsp page should be printed only once and it should not be saved any where.
We can say as like "Demand Draft".
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

For what purpose? Security? I hope not, because that would be very silly.

In any case, it cannot be done, so the reason is irrelevant.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You also can't prevent me from printing your document to the PDFCreator printer driver and making a PDF out of it. So as the others have already said, trying to control what the user does with the output of your JSP is pointless.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to restrict Multiple Copies while printing with Print Option
 
Similar Threads
Invoke direct printing of PDF file from web application at client side
How to Control Number of copies in Print dialog
How to print the content of File.
Print the content of PDF
Virtual Printer in Java