0

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?

4
Contributors
3
Replies
4
Views
13 Years
Discussion Span
Last Post by Iron_Cross
0

What do you mean by print from the text box?

Do you want to "print" this to the screen, console, file, a physical printer?

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.