473,467 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disable web printing

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

Thanks.

Alan
Nov 18 '05 #1
17 3000
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
"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
> 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
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
"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
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
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
> 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
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
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

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
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
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
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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Grey | last post by:
Dear all can anyone teach me that is it possible to disable the title, no. of page, web address and date info when I print the html page. Best Regards, Eric Yum
4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
0
by: mg | last post by:
How can I disable or hide the toolbar/printing in a C#/JavaScript WebForm without having to manually close an opening window?
2
by: Jeremy Clulow | last post by:
Hi, I've designed a site at http://www.welsh-kitchens.com When all styles are disabled it looks like this http://www.welsh-kitchens.com/index-nocss.shtml I've tried creating a printing...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: sqldude | last post by:
How can I disable the print preview while printing an excel file from C# code? Thanks.
1
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
I would like to gray out or disable all of page content while a pannel is visible and active. I know there is a way to do this. psudo code 1. click "Join" 2. display panel and disable all other...
18
by: mclerp | last post by:
I want to disable copying picture files from an HTML file. I have purchased "Activ eBook Compiler" software which disables left-click copying, printing, and Alt+PrtScr copying to clipboard but it...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.