How to create a print preview page?

Posted by Laghaterohan under C# on 10/5/2010 | Points: 10 | Views : 16259 | Status : [Member] | Replies : 3
Hello,

I have a button on my aspx page 'Preview'. When the user clicks on it, the data on the current page should open up in the new browser for viewing purpose and the user can then print if he/she wants to.

Basically, i want to create a print preview page.

I tried the code on the Code Project site however, it does not work on the IE 7.0 browser. Any one has the solution for the same>

Please suggest me the same.

Awating your earliest reply,...as it is urgent....:(

Thanks!

Rohan Laghate

Best Regards,
Rohan Laghate



Responses

Posted by: Lalji_mer on: 10/5/2010 [Member] Bronze | Points: 25

Up
0
Down
try this link for sample code

http://www.dreamincode.net/forums/topic/90914-print-preview-print-in-c%23/

LP MER

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 10/5/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Rohan,

// For Web Application
http://www.dotnetcurry.com/ShowArticle.aspx?ID=92&AspxAutoDetectCookieSupport=1

// For Windows Application
http://www.devarticles.com/c/a/C-Sharp/Printing-Using-C-sharp/2/

Refer those links its will helpful to you.


Thanks,
T.Saravanan

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prasham on: 10/5/2010 [Member] Starter | Points: 25

Up
0
Down
Hello Rohan,

Please verify if following link help you

http://www.pin5i.com/showtopic-7138.html

Thanks
Prasham

Thanks and Best Regards
Prasham

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response