Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Web form printing

Author  Topic 

swatib
Posting Yak Master

173 Posts

Posted - 2006-03-27 : 06:34:00
I'm using ASP.NET using C#
How do I print a web form on hitting a button (say Print)?



Njoy Life

twhelan1
Yak Posting Veteran

71 Posts

Posted - 2006-03-27 : 08:51:38
You'll have to do that in JavaScript because printing is done client side where as the C# code is processed server side.

Try:
http://www.htmlgoodies.com/beyond/javascript/article.php/3471121


~Travis
Go to Top of Page

jhermiz

3564 Posts

Posted - 2006-03-27 : 09:42:06
I generally create the web form like apperance in reporting services, that way printing is much cleaner and simplier.
Think about that having an actual report that may look like what you want to print.


Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
Go to Top of Page

swatib
Posting Yak Master

173 Posts

Posted - 2006-03-28 : 02:28:42
Thanks both of u

Njoy Life
Go to Top of Page
   

- Advertisement -