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
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to print out a RichTextBox

How to print out a RichTextBox

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
5 Posts 4 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.
  • R Offline
    R Offline
    re infecta
    wrote on last edited by
    #1

    I have googled and googled but not found a single simple solution: How to print the contents of a RichTextBox? The contents is text only and font courier 12.

    N 1 Reply Last reply
    0
    • R re infecta

      I have googled and googled but not found a single simple solution: How to print the contents of a RichTextBox? The contents is text only and font courier 12.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Have you tried this[^] ? Although it is in C#, you will get an idea

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        Have you tried this[^] ? Although it is in C#, you will get an idea

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        R Offline
        R Offline
        re infecta
        wrote on last edited by
        #3

        Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?

        D D 2 Replies Last reply
        0
        • R re infecta

          Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          If you looked at the top of that page, there's a link to the VB.NET 2005 (.NET 2.0) version of the same code. Also, the code has absolutely nothing to do with the IDE you're using. It'll still work, even if you're using Notepad to type in the code.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          1 Reply Last reply
          0
          • R re infecta

            Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?

            D Offline
            D Offline
            Duncan Edwards Jones
            wrote on last edited by
            #5

            Drop this component[^] on the form that contains the rich text box, then set the extended properties for the bounding rectangle and other options and then call the FormPrintHelper1.Print method.

            '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

            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