开发者

Viewing Microsoft Office 2007/2010 files in C# winforms

I have read a lot of articles and SO quistions about this matter, yet, no appealing solution has come to my sight!

what i need basically is:

  • Viewing MS office 2007/2010 documents in my winforms application
  • Editing is not needed, however would be GREAT if could be provided

What i Tried:

  • I tried to use a web browser control after setting the registary flags to open office docs in the same browser window rather than saving them on my machine
  • I tried to use the Edraw Office viewer component, however, i can't buy licences to all the target users of my application and the trial version is annoying with the "buy the licence" msg boxes appearing whenever i open and close the application
  • I also have seen this SO question How do I display office and/or pdf content on a windows form? and the answer is not bad, however, although i don't need the editing feature but i still would like to be able to copy text from the viewed document. i.e. this answer won't work well for me

A final note: Using a web browser component would be perfect as 开发者_StackOverflowi'm using it already to view PDF/html/txt files and providing a functionality to make it work with MS office docs would make the application just what i hope for it to be!

I have already tried to use this article:

http://support.microsoft.com/kb/304662

but the web browser is still offering to save the file on my machine. :S

Any Suggestions?


I google a bit, and found DSOFrameer which was purposed for that, but found the project removed here is why Location of DSOFramer Download and this

this may be helpful

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜