Click to See Complete Forum and Search --> : don't print page


peachy
06-01-2004, 08:55 PM
Is there a way to prevent the printing of a page using ASP?
:confused:

buntine
06-01-2004, 10:11 PM
I would highly doubt it.

ASP is a server-side language, so unless the page is reloaded before it is printed, it cant be done.

There is probably a JavaScript solution as it is executed on the clients machine.

Regards,
Andrew Buntine.

peachy
06-01-2004, 11:37 PM
With "what" language can I prevent the printing of the page? and where can I find an example.
Thanks:)

jbloom
06-02-2004, 02:39 AM
I would consider if it's really worth the effort. Just disabling printing from the context menu on that page would still leave other options:

1) Print the screen
2) Utilize another image utility to capture the screen
3) Save As... the HTML page and print it out
4) Copy the text and paste it into Notepad to print it out
5) Select Print from the File menu
6) Send To an email message and print it out there
7) etc...

If you want to encrypt your source, then there are solutions for this.
This product might do some of the things you want.

http://www.antssoft.com/htmlprotector/

buntine
06-02-2004, 06:01 AM
In the end, i think it boils down to the fact that trying to protect your pages is simply not worth it..

Truthfully, its not possible. Also, it can be very annoying.

peachy
06-02-2004, 09:01 AM
Thanks for the input.
My reason for the question is this is going to be a WebBased Test and they customer doesn't want the tester to be able to print it.