Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use Windows Forms printpreview dialog in asp.net? tell me idea i have tried to use printpreview control [not dilaog] as a control file in asp.net since we can't use previewdialog or msgbox
Posted

1 solution

As far as i know, web sites are not allowed to control hardware attached to client computers. Browsers do that for us; most browsers have print preview dialogues. Since print preview dialogues are based on properties of printers, there is no direct way of doing it.
But there is always a solution, you can use javascript or activex. I think the following links would be useful:
javascript printing
javascript printing 2
printtopreview
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900