Printing a textbox?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2004
Posts: 1
Reputation: oleerik is an unknown quantity at this point 
Solved Threads: 0
oleerik oleerik is offline Offline
Newbie Poster

Printing a textbox?

 
0
  #1
Aug 18th, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 19
Reputation: C#Coder is an unknown quantity at this point 
Solved Threads: 0
C#Coder C#Coder is offline Offline
Newbie Poster

Re: Printing a textbox?

 
0
  #2
Sep 20th, 2004
What do you mean by print from the text box?

Do you want to "print" this to the screen, console, file, a physical printer?
If you don't know it, learn it ;)
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1
Reputation: majid_cms is an unknown quantity at this point 
Solved Threads: 0
majid_cms majid_cms is offline Offline
Newbie Poster

Re: Printing a textbox?

 
0
  #3
Apr 11th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: Printing a textbox?

 
0
  #4
Apr 12th, 2005
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.
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC