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. C#
  4. Printing the contents of an RTF Textbox control...

Printing the contents of an RTF Textbox control...

Scheduled Pinned Locked Moved C#
graphicshelptutorialquestionlearning
3 Posts 2 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
    rvp717y
    wrote on last edited by
    #1

    I've created an application for logging various events in an RTF textbox with lots of formatted text and graphics etc. Now I'd like to be able to print the contents. But! I can't find any simple way to do this... One solution I've found saves the contents to disk as a .rtf document and then gets wordpad to print it. This works and produces very nice output - however wordpad doesn't support headers and footers and I really need to add date and timestamps plus page numbers to the bottom of each page. Does anyone know of a simple way, or a good resource which describes how to print the contents of an RTF textbox? Many thanks for your kind help. John.

    M 1 Reply Last reply
    0
    • R rvp717y

      I've created an application for logging various events in an RTF textbox with lots of formatted text and graphics etc. Now I'd like to be able to print the contents. But! I can't find any simple way to do this... One solution I've found saves the contents to disk as a .rtf document and then gets wordpad to print it. This works and produces very nice output - however wordpad doesn't support headers and footers and I really need to add date and timestamps plus page numbers to the bottom of each page. Does anyone know of a simple way, or a good resource which describes how to print the contents of an RTF textbox? Many thanks for your kind help. John.

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Take a look here[^] for a start.

      Regards, mav -- Black holes are the places where God divided by 0...

      R 1 Reply Last reply
      0
      • M mav northwind

        Take a look here[^] for a start.

        Regards, mav -- Black holes are the places where God divided by 0...

        R Offline
        R Offline
        rvp717y
        wrote on last edited by
        #3

        Mav, Very cool article - just what I need methinks. I'm going to have to read it a couple of times to make sure I understand it though! Many thanks. John.

        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