Qt-style documentation for Microsoft office COM objects
-
Hi,
I am trying to use QAxObjects to manipulate data that is in Microsoft word/office documents and use it in my Qt application.I know it can be done by doing something like this:
@QAxObject* excel = new QAxObject("Excel.Application"); excel->setProperty("Visible", false); QAxObject* workbooks = excel->querySubObject("WorkBooks");
..............................................
@
But I can't find any doc that can map activeQt syntax to the syntax provided by "msdn":http://msdn.microsoft.com/en-us/library/office/ff845307.aspx for example.
Any link ,or tool that can help get an organized doc would be really helpful as I am getting desperate on this.
Thanks for your time.
-
did you try "dumpdoc":http://qt-project.org/doc/qt-4.8/activeqt-dumpdoc.html ?
-
Thanks,chris17,had missed this,
but I still have problems using the tool;- the doc says"object must be an object installed on the local machine"
What object are they reffering to here is it like Paragraph in the "msdn link":http://msdn.microsoft.com/en-us/library/office/ff845307.aspx ? or some other kind of object I am missing?
2.It also says "To build the tool you must first build the QAxContainer library."
How do I build the tool and QAxContainer ,do I have to get some kind of source code somewhere or something.
I would be glad if somebody helped in getting this tool running.
Thanks.
- the doc says"object must be an object installed on the local machine"
-
-
you can use specify objects like this Outlook.Application/Session/CurrentUser
-
you need the Qaxcontainer library anyway for using activeQt in your project
from the "docs":http://qt-project.org/doc/qt-5.0/activeqt/activeqt-index.html:
To build the static libraries, change into the activeqt directory (usually QTDIR/src/activeqt), and run qmake and your make tool in both the container and the control subdirectory. The libraries qaxcontainer.lib and qaxserver.lib will be linked into QTDIR/lib. -
-
Thanks chris17,
Your input was really helpful.I was able to build it.I also want to add that the source code of the tool is located under a directory like C:\QtSDK\QtSources\4.8.1\tools\activeqt\dumpdoc in case somebody has trouble finding it like me :-).Also by curiosity,why isn't this doc provided with other doc files of Qt so users can just read the doc and use it without going through the hassle of building dumpdoc themselves.Maybe there is a good reason for this?
Thanks.