-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: ChaitraNagaraj
Message 2 in Discussion

Hi Nirmal,    Even I had a requirement to print an aspx page and also to retain 
all the formatting. These are the steps to do:   1. Create a aspx page. eg: 
PrintBill.aspx. 2. Copy the complete html from your bill page and copy it to 
PrintBill.aspx. The complete <body> contents. 3. In the Page_Load method in 
PrintBill.aspx.cs populate all the fields from the database. 4.In the Body 
onload event of the PrintBill.aspx call the window.print() method on client 
side. This ensure that you are printing the page after all the controls are 
rendered and the values are populated. 5. In the PrintButton click event of 
your bill page do a window.open("PrintBill.aspx
"). This will open the formatted PrintBill page and open the stand print 
dialog.   -thanks Chaitra Nagaraj

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to