-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,771
  • 12
  • 29
  • 54
kurupt_89
  • 1,489
  • 8
  • 35
  • 63
  • 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,847
  • 1
  • 13
  • 24
0

have a look at this, hope this helps

office with C#

abhijit
  • 1,938
  • 3
  • 27
  • 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
  • 9,799
  • 8
  • 36
  • 54