File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
How to restrict Multiple Copies while printing with Print Option
Joined: Mar 11, 2010
Oct 01, 2013 03:47:11
My need is to print my application's response
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
Kindly suggest. Thanks in advance
Joined: Jul 26, 2007
Oct 01, 2013 03:54:13
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!
Joined: Mar 11, 2010
Oct 01, 2013 04:31:30
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".
Author and ninkuma
Joined: Jan 10, 2002
Oct 01, 2013 08:24:07
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
Books by Bear
Joined: Oct 14, 2005
Oct 01, 2013 17:33:39
You also can't prevent me from printing your document to the PDFCreator printer driver and making a
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:
subject: How to restrict Multiple Copies while printing with Print Option
How to print the content of File.
Virtual Printer in Java
Invoke direct printing of PDF file from web application at client side
Print the content of PDF
How to Control Number of copies in Print dialog
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015