By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,203 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,203 IT Pros & Developers. It's quick & easy.

Disable web printing

P: n/a
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Thanks.

Alan
Nov 18 '05 #1
Share this Question
Share on Google+
17 Replies


P: n/a
Hi

I don't know if that is possible, but there is another trick available for
stopping people from printing your page :-)

http://www.howtodothings.com/showarticle.asp?article=83
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com
Nov 18 '05 #2

P: n/a
"Alan Z. Scharf" <as*****@grapevines.com> wrote in news:uJ#PYk9fEHA.2028
@tk2msftngp13.phx.gbl:
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?


Maybe with Javascript

But someone can just take a screenshot.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #3

P: n/a
> http://www.howtodothings.com/showarticle.asp?article=83

That's a cheap amateur trick, which isn't going to prevent anyone but the
ignorant from printing the page. Bottom line is, it can't be done. Show me
any page on the Internet, and I can copy it and print it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter Morris" <pe**@removethisbit.droopyeyes.com> wrote in message
news:Ov**************@tk2msftngp13.phx.gbl...
Hi

I don't know if that is possible, but there is another trick available for
stopping people from printing your page :-)

http://www.howtodothings.com/showarticle.asp?article=83
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

Nov 18 '05 #4

P: n/a
WJ

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ****************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?


Why would you want to do this ? I would be very mad as hell if my system is
altered. I am as your client, I am the owner of my system. You are not
allowed without my consent to alter my system. As soon as I see such sites
doing these types of stuff, I would never come back. So, please do not do
it. If yours is so secret or highly valuable, then put it in the safe box,
do not publish it in the 1st place.

John
Nov 18 '05 #5

P: n/a
"WJ" <Jo*******@HotMail.Com> wrote in message
news:eA****************@TK2MSFTNGP10.phx.gbl...
"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ****************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Why would you want to do this ? I would be very mad as hell if my system

is altered. I am as your client, I am the owner of my system. You are not
allowed without my consent to alter my system. As soon as I see such sites
doing these types of stuff, I would never come back. So, please do not do
it. If yours is so secret or highly valuable, then put it in the safe box,
do not publish it in the 1st place.


I couldn't agree more! What a moronic thing to try to do!
Nov 18 '05 #6

P: n/a
Hi
That's a cheap amateur trick
Actually it is a very useful trick for providing two versions of a page, one
for reading, and one for printed (without adverts etc). As far as I know
there is no way at all to stop someone from printing a webpage, so for the
sake of a single line of HTML it is better to put off a large number of
people than none at all. Yes, I believe that a large number of people who
use the Internet would not know how to circumvent it because they are
computer "users" and not computer "programmers".

which isn't going to prevent anyone but the
ignorant from printing the page. Bottom line is, it can't be done. Show me
any page on the Internet, and I can copy it and print it.


Well, that's a bit like telling Superman that there is a metal which can't
be bent now isn't it :-)
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com
Nov 18 '05 #7

P: n/a
Security isn't horseshoes. Almost only counts in horseshoes and hand
grenades. Something is either secure or it is not. There is no such thing as
"sort of" secure. If the goal of this is to prevent printing of web
documents, it is a failure.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter Morris" <pe**@removethisbit.droopyeyes.com> wrote in message
news:OQ**************@TK2MSFTNGP09.phx.gbl...
Hi
That's a cheap amateur trick
Actually it is a very useful trick for providing two versions of a page,

one for reading, and one for printed (without adverts etc). As far as I know
there is no way at all to stop someone from printing a webpage, so for the
sake of a single line of HTML it is better to put off a large number of
people than none at all. Yes, I believe that a large number of people who
use the Internet would not know how to circumvent it because they are
computer "users" and not computer "programmers".

which isn't going to prevent anyone but the
ignorant from printing the page. Bottom line is, it can't be done. Show me any page on the Internet, and I can copy it and print it.


Well, that's a bit like telling Superman that there is a metal which can't
be bent now isn't it :-)
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

Nov 18 '05 #8

P: n/a
> Security isn't horseshoes. Almost only counts in horseshoes and hand
grenades.
I have no idea what you are talking about.

Something is either secure or it is not. There is no such thing as
"sort of" secure. If the goal of this is to prevent printing of web
documents, it is a failure.


Indeed it is. It is not possible to stop people from printing, so I offered
a technique which would print a different webpage. There are many too ways
to print a webpage to be able to stop someone from doing it completely, but
does that mean I still shouldn't post? I don't think so.
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

Nov 18 '05 #9

P: n/a
Because my client wants to do that, until I can convince him otherwise.

It is for use on a specific internal intranet application, not public
website.

Alan
"WJ" <Jo*******@HotMail.Com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ****************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Why would you want to do this ? I would be very mad as hell if my system

is altered. I am as your client, I am the owner of my system. You are not
allowed without my consent to alter my system. As soon as I see such sites
doing these types of stuff, I would never come back. So, please do not do
it. If yours is so secret or highly valuable, then put it in the safe box,
do not publish it in the 1st place.

John

Nov 18 '05 #10

P: n/a
Thanks to all who replied. I appreciate your answers very much.

Alan
"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Thanks.

Alan

Nov 18 '05 #11

P: n/a

Thanks to all who replied. I appreciate your answers very much.

Alan

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Thanks.

Alan

Nov 18 '05 #12

P: n/a
Because my client wants to do that, until I can convince him otherwise.

It is for use on a specific internal intranet application, not public
website.

Alan

"WJ" <Jo*******@HotMail.Com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ****************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Why would you want to do this ? I would be very mad as hell if my system

is altered. I am as your client, I am the owner of my system. You are not
allowed without my consent to alter my system. As soon as I see such sites
doing these types of stuff, I would never come back. So, please do not do
it. If yours is so secret or highly valuable, then put it in the safe box,
do not publish it in the 1st place.

John

Nov 18 '05 #13

P: n/a
On Wed, 11 Aug 2004 17:17:45 -0400, "WJ" <Jo*******@HotMail.Com>
wrote:

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ****************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?


Why would you want to do this ? I would be very mad as hell if my system is
altered. I am as your client, I am the owner of my system. You are not
allowed without my consent to alter my system. As soon as I see such sites
doing these types of stuff, I would never come back. So, please do not do
it. If yours is so secret or highly valuable, then put it in the safe box,
do not publish it in the 1st place.

John

There are many cases that this might be necessary for legal and other
reasons. Just because you are looking at it on your system doesn't
mean you own the content. Make sure you read the fine print on most if
not all sites. You are highly restricted on what you can and cannot do
legally.
Peace,
Mike
Nov 18 '05 #14

P: n/a
Alan,

One option is to open the required page as new window (
Window.ShowModalDialog ). You can disable the tool bar in this window.
You may also consider suppressing the content for printing. You can do this
on the client side using 'OnBeforePrint' ,'OnAfterPrint' events.

Let me know if you find any better options without having to use any third
party tools.

-Souri Challa

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:ul*************@TK2MSFTNGP12.phx.gbl...

Thanks to all who replied. I appreciate your answers very much.

Alan

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Thanks.

Alan


Nov 18 '05 #15

P: n/a
Souri,

Thanks for your reply.

In what documentation could I get more info on this?

Regards,

Alan

"Souri Challa" <so*********@hotmail.com> wrote in message
news:jaLTc.13792$mD.2567@attbi_s02...
Alan,

One option is to open the required page as new window (
Window.ShowModalDialog ). You can disable the tool bar in this window.
You may also consider suppressing the content for printing. You can do this on the client side using 'OnBeforePrint' ,'OnAfterPrint' events.

Let me know if you find any better options without having to use any third
party tools.

-Souri Challa

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:ul*************@TK2MSFTNGP12.phx.gbl...

Thanks to all who replied. I appreciate your answers very much.

Alan

"Alan Z. Scharf" <as*****@grapevines.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web
application?

Thanks.

Alan



Nov 18 '05 #16

P: n/a
WJ

"someone" <so*****@somewhere.com> wrote in message
news:42********************************@4ax.com...
On Wed, 11 Aug 2004 17:17:45 -0400, "WJ" <Jo*******@HotMail.Com>
wrote:

There are many cases that this might be necessary for legal and other
reasons. Just because you are looking at it on your system doesn't
mean you own the content. Make sure you read the fine print on most if
not all sites. You are highly restricted on what you can and cannot do
legally.
Peace,
Mike


I do not dispute or have any ? about web contents and I do not claim
anything on www as mine. However, My PC is mine, not the www.

John
Nov 18 '05 #17

P: n/a

Alan Z. Scharf wrote:
*How can I disable the IE6 Print button and Ctrl-P for an ASP.Net
web
application?

Thanks.

Alan *

function disableCopyPastePrint() {
//write by w3Rm
if (((event.ctrlKey) && (parseInt(event.keyCode) == 67)) || //ctrl +
c
((event.ctrlKey) && (parseInt(event.keyCode) == 80)) || //ctrl + p
((event.ctrlKey) && (parseInt(event.keyCode) == 86))) { //ctrl + v
event.keyCode = 0;
event.returnValue = false;
return false;
}
}
document.onkeydown = disableCopyPastePrint;

--
w3Rm
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #18

This discussion thread is closed

Replies have been disabled for this discussion.