943,789 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 16846
  • C# RSS
Aug 18th, 2004
0

Printing a textbox?

Expand Post »
Hello! I am new and are gonna make a "write'n'print" appelication, i have readed many samples(et.c) but i cant' find my answar!

How du i print from my textbox with name textb?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
oleerik is offline Offline
1 posts
since Aug 2004
Sep 20th, 2004
0

Re: Printing a textbox?

What do you mean by print from the text box?

Do you want to "print" this to the screen, console, file, a physical printer?
Reputation Points: 11
Solved Threads: 0
Newbie Poster
C#Coder is offline Offline
19 posts
since Sep 2004
Apr 11th, 2005
0

Re: Printing a textbox?

Quote originally posted by oleerik ...
Hello! I am new and are gonna make a "write'n'print" appelication, i have readed many samples(et.c) but i cant' find my answar!

How du i print from my textbox with name textb?
to print text from form field to any other .. try the following
string s1=formobjectname.textfieldname.Text;

now u get the string in the object s1. now u can print it on console, file, form etc
Reputation Points: 10
Solved Threads: 0
Newbie Poster
majid_cms is offline Offline
1 posts
since Apr 2005
Apr 12th, 2005
0

Re: Printing a textbox?

To print to an actual document you're going to have to use a PrintDocument object, and override the PRINT event. Keep in mind though, that printing to a printer is very tricky at times, it's just like drawing with the 2D API. It's not like writing text to the screen, it's your job as the programmer to make sure all the lines fit and everything like that.
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: does C# has any change in .net2002 /.net2003
Next Thread in C# Forum Timeline: Need help manipulating files/directories





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC