HighTechTalks DotNet Forums  

Print web form(urgent)

CSharp microsoft.public.dotnet.languages.csharp


Discuss Print web form(urgent) in the CSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Das
 
Posts: n/a

Default Print web form(urgent) - 07-05-2004 , 06:18 AM






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

Reply With Quote
  #2  
Old   
Tamir Khason
 
Posts: n/a

Default Re: Print web form(urgent) - 07-05-2004 , 06:43 AM






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

Quote:
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



Reply With Quote
  #3  
Old   
Das
 
Posts: n/a

Default Re: Print web form(urgent) - 07-05-2004 , 07:29 AM



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:

Quote:
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




Reply With Quote
  #4  
Old   
Tamir Khason
 
Posts: n/a

Default Re: Print web form(urgent) - 07-05-2004 , 07:49 AM



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

Quote:
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
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






Reply With Quote
  #5  
Old   
Das
 
Posts: n/a

Default Re: Print web form(urgent) - 07-06-2004 , 12:59 AM



Tamir,
Thanks again for reply, Even though I call a onclick event, It will simply execute What I want to wait until the user has selected or cancelled the print dialog box. I want some notification after showing the print dialog box. so that after that I can perform some operation.


das

"Tamir Khason" wrote:

Quote:
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
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







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.