Printing is disabled in web browser

Hi,My client requirment is that when we open the document in web browser printing option is deactivate.For that particular web application (nsf) no body can take printout of the document.

i have no idea how can i solve that issue with style sheet.

plz help me this is very urgent.

regards

Subject: printing is disabled in web browser

Hi Sonal

Here’s something I found on one of the other web development forums (you can also find solutions - just try to google them if answers here arent forthcoming!):

http://www.codeguru.com/forum/archive/index.php/t-202533.html

HTH

A

Subject: printing is disabled in web browser

This has been urgent now for a couple of weeks, I believe, and the answer is still the same: It cannot be done.

One building block for a hack-around for user el stupido could be CSS like this:

@media print { html { visibility: hidden; display: none; } }

As soon as the user disables the stylesheet or does a screen dump, this will not help a bit.

Subject: RE: printing is disabled in web browser

Thanks Harkpabst Please tell me brief as i am very very new in web development.but i have to do things with my own.

Subject: RE: printing is disabled in web browser

What more can I say? This IS the solution (for CSS capable browsers). Put it inside your CSS resource or inside the form’s HTML Head content (as a String, so you have to escape the quotes with a backslash) and you’re done.

If you are looking for additional “protection” using JS hacks, check the responses to your first posting on the topic.

Subject: RE: printing is disabled in web browser

thanx to everyone for help me.

Subject: printing is disabled in web browser

Sonal,

PLEASE stop posting the same question time and time again.

Before long, people will just start to ignore any post as they will assume it is the same question again!

Mike