如何在asp.net中使用javascript打印页面时删除url [英] how to remove url while print a page using javascript in asp.net
本文介绍了如何在asp.net中使用javascript打印页面时删除url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
如何在asp.net中使用javascript打印页面时删除url
我正在使用
Dear all,
How to remove url while print a page using javascript in asp.net
i am using
<a href="javascript:window.print();">
打印代码
当打印页面时,它给出asp页面和日期的URL
我想从打印页面中删除该URL.
code for print
when print page it give url of asp page and date
i want to remove this url from the print page.
推荐答案
嗨Dinesh ..
请去扔以下链接...
如何从标头和使用打印按钮的页脚 [ ^ ]
打印网页URL页脚 [
Hi Dinesh..
please go throw following links...
How to remove url and page number from header and footer using print button[^]
Print Web Page URL Footer[^]
Thanks
我认为不可能.这是浏览器功能.唯一的方法是让客户端(打印页面)通过设置一些打印机/浏览器选项来删除它..
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..
您好,
如果您使用的是Firefox(14.0),请按以下步骤操作,对于其他浏览器可能会有所更改.
1)文件>页面设置....
2)打开页边距和页眉/页脚"选项卡
3)检查下面的页眉/页脚框架.如果存在URL,则将其删除.
我不知道要从您的代码中进行更改.请在Google中搜索.
希望您有解决问题的想法,
谢谢
-Amit Gajjar
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
这篇关于如何在asp.net中使用javascript打印页面时删除url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文