-1

I need to output text as bold to a doc file. I've looked into rtf markup and looked for an Office API, but I can't find anything. At the moment, I'm using HTML markup with streamwriter but I want something else, if possible.

Does anyone know how I can do this?

Laurel
  • 5,965
  • 14
  • 31
  • 57
kurupt_89
  • 1,542
  • 8
  • 37
  • 65
  • did you try Microsoft.Office.Interop.Word ?? – abhijit Aug 11 '11 at 08:44
  • @abhi The problem with that is that i need to handle multiple versions of word and my program will be using clickonce deployment so that will be a problem. – kurupt_89 Aug 11 '11 at 08:55
  • ok kurupt read this http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c – abhijit Aug 11 '11 at 08:58

3 Answers3

1

Does this help you on RTF format? http://www.dreamincode.net/forums/topic/122443-bold-effect-in-rtf-file/

Zenwalker
  • 1,883
  • 1
  • 14
  • 27
0

have a look at this, hope this helps

office with C#

abhijit
  • 1,958
  • 3
  • 28
  • 39
0

If you have some budget, Spire.doc might be a solution for you: http://www.e-iceblue.com/Introduce/word-for-net-introduce.html. They also support different Word doc formats.

Olaf
  • 10,049
  • 8
  • 38
  • 54