Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to display the text from a doc or docx file in a textbox.

Currently I am using Microsoft.Office.Interop to view the text but that needs MS Word to be installed on server. So I don't want to use that.

Any solutions?

share|improve this question
add comment

1 Answer

You may use Microsoft Office Open XML SDK. That doesn't require MS Office be installed for creating or working with the contents of the document files. http://msdn.microsoft.com/en-us/library/office/bb456487%28v=office.14%29.aspx

The SDK could be downloaded from here: http://www.microsoft.com/en-pk/download/details.aspx?id=30425

share|improve this answer
 
So I need to install Open XML SDK on my server. But I am not permitted to install anything on the server. –  Vishal May 5 '13 at 22:01
 
No. You have to include the dll in your project and that would be compiled in your project. Check this link about getting started with the SDK msdn.microsoft.com/en-us/library/office/bb456488.aspx –  Ali .NET May 5 '13 at 22:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.