Printing Text
-
i am printing information on a form and i send all the items individually to the printer, however i have a textbox that contains a large body of text, and when i print it just goes in one straight line, how do i break it down so it shows all the text thanx
-
i am printing information on a form and i send all the items individually to the printer, however i have a textbox that contains a large body of text, and when i print it just goes in one straight line, how do i break it down so it shows all the text thanx
Set TextBox’s Multiline property to true You can use rich text box to do that http://support.microsoft.com/default.aspx?scid=kb;en-us;811401[^] :)
Regards,
Chatura Dilan
-
i am printing information on a form and i send all the items individually to the printer, however i have a textbox that contains a large body of text, and when i print it just goes in one straight line, how do i break it down so it shows all the text thanx
if you use the Graphics Namespace http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawinggraphicsmemberstopic.asp[^] You would be able to "messure" the printable area including the width. Then all you need to do is messure your text, and split it up in at reasonable fashion. (MeasureString in the graphics namespace) that could be one way of doing it ;) It's my opinion that nothing is impossible, it's "just" at matter of enough knowledge, time and money. ;) -- modified at 3:10 Wednesday 17th May, 2006