| Author: ANIL PANDEY 20 Aug 2008 | Member Level: Diamond | Rating: Points: 2 |
hi,
u can use the Javscript function
Window,Print()
to print the document.
Thanks Anil
|
| Author: jeeva 20 Aug 2008 | Member Level: Silver | Rating: Points: 3 |
excuse me,
i am new to this
I dont know javascript
i need as
i just click the button event
the printout will be process
plz give the code in c# to the print the data's displayed in the "patientreport.aspx".
ok
|
| Author: Kumar 20 Aug 2008 | Member Level: Gold | Rating: Points: 6 |
Hi jeeva,
for printing in C# u need to add javascript in Button control something like this ,
In the Button_Click { ClientScript.RegisterStartupScript(typeof(Page), "Display", "<script>window.print();</script>"); } copy and paste this code.It will works.IN C# web application no page setting coding is there u need to design the page that should be good appearing after the page is print. use dreamweaver to design the page. after u use this code in button_clik print the page the print page will show the URL name ,print date,Title in the bottom .if u want to avoid that,In the IE page goto file-->PageSetUp-->Clear the Header and Footer .Now it not display the header and footer while printing .
Hope this will help u, need help reply me , dhilip.kannan@yahoo.co.in
|