| | |
Printing a textbox?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2005
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
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?
string s1=formobjectname.textfieldname.Text;
now u get the string in the object s1. now u can print it on console, file, form etc
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.
![]() |
Similar Threads
- Printing multiple pages, how? (C#)
- Printing to a Textbox (C#)
- Qb to VB.NET (VB.NET)
Other Threads in the C# Forum
- Previous Thread: does C# has any change in .net2002 /.net2003
- Next Thread: Need help manipulating files/directories
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mailmerge mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string stringformatting sun table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





