ASP.NET - how to avoid from printing url on the paper

Asked By bhanupratap singh on 15-Jul-13 09:51 AM
I'm using javascript function to print web page.  My requirement is that url should not be printed on the page. 
Robbe Morris replied to bhanupratap singh on 15-Jul-13 09:51 AM
This is part of the user's printer settings.  You can't change this from JavaScript.
bhanupratap singh replied to Robbe Morris on 16-Jul-13 04:01 AM
but it is not possible to go each user machine and make browser setting. suppose if user access my application in other cities then how could I do it.
thanks
Robbe Morris replied to bhanupratap singh on 16-Jul-13 08:09 AM
Browser security is going to prevent you from doing this via JavaScript.  What you are asking for is NOT supported.  You are not the first to ask nor will you be the last.  :)  Feel free to spend several hours scanning the web looking for another answer.  You won't find one.

The best you can do is provide instructions in your web application showing users how to change their printer settings.
bhanupratap singh replied to Robbe Morris on 24-Jul-13 12:47 AM
Thanks for reply