Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to display a Word document (*.docx)?

$
0
0

Is there a better approach to display a Word document in my application than converting it to html and display it in an htmlviewer control using one of these two methods:
http://codinglight.blogspot.ch/2008/10/simple-docbrowser-control.html
http://msdn.microsoft.com/en-us/library/ff628051(v=office.14).aspx ?

I do not like these two approaches.. the first requires MS Word to be installed on the user's machine and the second does not display the formatting correctly.

I only want to display the documet, like an image. The user does not need to be able to interact with the document (such as marking text, etc.). A function which simply renders the document into a Bitmap would be a convenient solution for me, but I guess that does not exist.. I looked into the Open Xml SDK but it contains a great number of classes and its not really documented well, so if there was a class which provided such a method, I overlooked it...

So I would be really grateful if someone pointed me into the right direction :)

Note: Im looking for something (a library/sdk/etc.) which does the task for me. I do not have the time (and propably not the knowledge) to write my own WordRenderer implementation atop the Open Xml SDK.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>