Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing Text

Printing Text

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jaded_angel
    wrote on last edited by
    #1

    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

    C N 2 Replies Last reply
    0
    • J jaded_angel

      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

      C Offline
      C Offline
      Chatura Dilan
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • J jaded_angel

        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

        N Offline
        N Offline
        nobel tele gl
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups