Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Please Give a sample application with the complete code..using c# and asp.net 3.5

Print a textBox value without showing the PrintDialogBox
Thanks in advance
Posted
Updated 15-May-12 2:26am
v2

Hi Kanamala

Here is a link to code that does just this, and it shows you the necessary steps to configure client side if needed.
http://justtalkaboutweb.com/2008/05/09/javascript-print-bypass-printer-dialog-in-ie-and-firefox/[^]

Just a caveat though: There are are a few reasons why it might not be a good idea though
The user might want to choose which printer to use, as well as choose settings like gray scale and paper size etc.
This might be abused to print popups and advertisements

I hope this helps you

Regards
 
Share this answer
 
v2

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