![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing. Is there any other method to print the complete form thanks in advance... das |
#3
| |||
| |||
|
|
There are no way to avoid printing headers and footers in browser (this is internal function) however you can use Crystal Reports Extension to print nice forms from ASP.NET or any other 3rd part ActiveX (eg. http://www.htmlprinting.com/) In order to print "less" garbage use CSS to generate print view, but even withit you can not full avoid printing of internals. However you can build your own ActiveX wich prevent printing headers. In order to do this you only have to change HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this registry header and footer value to "". BUT I'd be very VERY angry if someone'll try to change any registry key in my computer... -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " "Das" <Das (AT) discussions (DOT) microsoft.com> wrote in message news:A9F1C8C4-5E9A-4D24-9866-E52A347AE219 (AT) microsoft (DOT) com... Hi All, I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing. Is there any other method to print the complete form thanks in advance... das |
#4
| |||
| |||
|
|
Dear Tamir, thanks for your reply, What if, I want untill the user selected or cancelled the window.print() dialog box. I want modal form like behavior. Thanks. Das "Tamir Khason" wrote: There are no way to avoid printing headers and footers in browser (this is internal function) however you can use Crystal Reports Extension to nice forms from ASP.NET or any other 3rd part ActiveX (eg. http://www.htmlprinting.com/) In order to print "less" garbage use CSS to generate print view, but even withit you can not full avoid printing of internals. However you can build your own ActiveX wich prevent printing headers. In order to do this you only have to change HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this registry header and footer value to "". BUT I'd be very VERY angry if someone'll try to change any registry key in my computer... -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " "Das" <Das (AT) discussions (DOT) microsoft.com> wrote in message news:A9F1C8C4-5E9A-4D24-9866-E52A347AE219 (AT) microsoft (DOT) com... Hi All, I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing. Is there any other method to print the complete form thanks in advance... das |
#5
| |||
| |||
|
|
So do it in JS onClick or OnMouseDown... -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " "Das" <Das (AT) discussions (DOT) microsoft.com> wrote in message news:54BA6D80-546C-4DA4-AF1C-738C209612C9 (AT) microsoft (DOT) com... Dear Tamir, thanks for your reply, What if, I want untill the user selected or cancelled the window.print() dialog box. I want modal form like behavior. Thanks. Das "Tamir Khason" wrote: There are no way to avoid printing headers and footers in browser (this is internal function) however you can use Crystal Reports Extension to nice forms from ASP.NET or any other 3rd part ActiveX (eg. http://www.htmlprinting.com/) In order to print "less" garbage use CSS to generate print view, but even withit you can not full avoid printing of internals. However you can build your own ActiveX wich prevent printing headers. In order to do this you only have to change HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this registry header and footer value to "". BUT I'd be very VERY angry if someone'll try to change any registry key in my computer... -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " "Das" <Das (AT) discussions (DOT) microsoft.com> wrote in message news:A9F1C8C4-5E9A-4D24-9866-E52A347AE219 (AT) microsoft (DOT) com... Hi All, I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing. Is there any other method to print the complete form thanks in advance... das |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |