importing *.doc,*.docx to Qt project
I’ just starting programming on Qt, and I have a lot of questions:
One of them is:
How to show the content of MS Word file document in my project? Which widgets I should use? please help with a little source and documentation
I am of no use in this area. However, did you already notice the examples for ActiveX [doc.qt.nokia.com] They could be a good start for you.
There are no ready-made widgets that will do exactly what you want. However, you’re not completely lost. MS Word, AFAIK, allows you to embed a Word instance in another application via ActiveX/Com. You can use QAxWidget for that. If you are content with just opening Word itself, then this is much easier. You can get away with just using QDesktopServices for that.
There is a word viewer if you only want readonly access :
With Word Viewer and the Compatibility Pack, you can view, print, and copy document contents to another program. However, you cannot edit an open document, save a document, or create a new document. This download is a replacement for Word Viewer 2003 and all previous Word Viewer versions.
NOTE: If you comply with the other license terms for the Word Viewer, you may distribute this viewer without a document created in Microsoft Office.
Sounds like they have made it available to use in other programs. Hopefully the way Andre explained. haven’t used it in Qt though.
My idea is, that you can not get a helpful answer to a question, if that question is not formulated in a way that makes the one you expect an answer from understands what your problem is. Try to be more specific in what the problem is, when asking for help. This guide [catb.org] may help you.