Click here to Skip to main content
12,511,553 members (45,409 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#3.0 C# ASP.NET
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 15-May-12 2:19am
Updated 15-May-12 2:26am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 15 May 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100