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. Copying richtext to Word

Copying richtext to Word

Scheduled Pinned Locked Moved C#
databasehelp
2 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
    RomanD
    wrote on last edited by
    #1

    I have a rich textbox with bold text on my form and I want to copy it over into a textbox in a word document. The problem is that when I do it, it looses it's formating and is not bold anymore. How would I go about copying text while preserving the same style that it had. Also, how would I store Rich text in access database and not have it loose the formating. Thanks

    M 1 Reply Last reply
    0
    • R RomanD

      I have a rich textbox with bold text on my form and I want to copy it over into a textbox in a word document. The problem is that when I do it, it looses it's formating and is not bold anymore. How would I go about copying text while preserving the same style that it had. Also, how would I store Rich text in access database and not have it loose the formating. Thanks

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

      IIRC, there's no direct way to insert RTF text into a word document. I had to perform a similar task once and had to resort to copying the RTF from the RichTextBox to the clipboard, set the target Range in the Word document and then perform a Paste to insert the RTF. Afterwards, I've restored the clipboard contents. Regards, mav

      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