VB.NET - "window.print()" in html code

Asked By suha sini on 04-Oct-06 07:46 AM

Hi,

My application is web application using vb.net

In my application I have to print the page

So I am using this "window.print()" in html code  and i have to connect to printer directly

So  it coming correct only

My problem is that in this page

Top  aspx page name ,number of pages

In bottom I am getting url  Address  and date

This thing I don’t want in my application

 

So can u please tell me how to take print with out this url,page name

to print page check out links

K Pravin Kumar Reddy replied to suha sini on 04-Oct-06 07:09 AM

hello

check out links

http://www.codeproject.com/useritems/PrintPreview.asp

http://www.devx.com/tips/Tip/27626

http://aspnet.4guysfromrolla.com/articles/022802-1.aspx

Print settings

mv ark replied to suha sini on 04-Oct-06 07:14 AM
As per the JS FAQ - http://www.jibbering.com/faq/#FAQ4_23 ,

In a normal security enviroment, you can't change anything. The page stylesheet rules provide some options, but are not supported in browsers yet. If you can, use an ActiveX or Plugin ScriptX and Neptune from Meadroid to give you more control for Windows versions of Internet Explorer and Netscape 4,6 and Opera 5.
http://www.meadroid.com/scriptx/
http://msdn.microsoft.com/library/en-us/dnscrpt/html/dhtmlprint.asp