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
koahnig last edited by
I am of no use in this area. However, did you already notice the examples for "ActiveX":http://doc.qt.nokia.com/4.7/qt-activex.html 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 [[Doc:QAxWidget]] for that. If you are content with just opening Word itself, then this is much easier. You can get away with just using [[Doc:QDesktopServices]] for that.
Eddy last edited by
There is a word viewer if you only want readonly access :
bq. 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.
@Eddy I need that function in the my project, not in other application.
Then, good luck with battling with QAxWidget!
I am "battling" with QAxWidget, but already need your ideas))
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":http://www.catb.org/~esr/faqs/smart-questions.html may help you.
@Andre Thanks a lot))
Eddy last edited by
[quote author="manar_mk" date="1309424344"]@Eddy I need that function in the my project, not in other application.[/quote]
I know of a program that is using the viewer (it's closed source). So it must be possible.
That's why i suggested to look into this. it's less overhead than using word.
@Eddy Thanks. I'll try
dialingo last edited by
Calligra Suite is able to read MS Office files. Calligra (KOffice fork) is open source . You can extract the filters if you like.