Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

How to remove url while print a page using javascript in asp.net

i am using
XML
<a href="javascript:window.print();">

code for print
when print page it give url of asp page and date

i want to remove this url from the print page.
Posted
Updated 9-Aug-12 1:51am
v2

 
Share this answer
 
I don't think it's possible. This is a browser function. The only way doing this is for the client (which prints the page) to remove it by setting some printer/browser options..
 
Share this answer
 
Comments
DINESH K MAURYA 9-Aug-12 8:20am    
thans for answer, but there is multiuser application on the web
StianSandberg 9-Aug-12 8:37am    
The short answer is "It's not possible to accomplish this using javascript"
Hi,

if you are using Firefox(14.0) here is the steps, it may be change for other browsers.

1) File > Page setup ....
2) Open "Margin & Header/Footer" tab
3) Check below Header/Footer Frame. if URL is there then remove it.

i don't have idea to change it from your code.Search in google for that.

Hope you got the idea to resolve your issue,

Thanks
-Amit Gajjar
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900