0

Q 1.

How can I read MS-Word documents(doc and docx) from C# without MS Office installed. I was able to read unformatted text using stream reader. I think I can use OpenXML for docx. But what about doc? Is there some open source solution to handle it? Is using OLE32dll an option in unlicensed scenario? Is use of IFilter a solution? havent seen anywhere any samples using it though and also not sure about its support in windows 7 and 8.

EDIT : I stumbled upon this solution and found it acceptable for my situation

Q 2.

I need to display the doc and docx files in my Webpage as Inline or in a partial page or even iframe. How is that possible? Is COM interoperablity the only solution to it too?

Rohit Vipin Mathews
  • 11,629
  • 15
  • 57
  • 112

1 Answers1

0

Maybe you can use the redistributable Interop Assemblies from Microsoft, to read your ".doc" :

http://www.microsoft.com/en-us/download/details.aspx?id=3508

It doesn't require Office according to the description.

Kyoros
  • 173
  • 2
  • 2
  • 8
  • You can use it and distribute it. For further details, you can read the complete terms which are provided with the assemblies. – Kyoros Sep 04 '13 at 07:19
  • 1
    Just check this [Link](http://stackoverflow.com/questions/5302140/primary-interop-assemblies-for-microsoft-office-applications) – Rohit Vipin Mathews Sep 04 '13 at 07:20
  • 1
    After further research, I've reached the same conclusion as you. Sorry but my solution will not work. If I find an other, I'll share it. – Kyoros Sep 04 '13 at 07:29