Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt-style documentation for Microsoft office COM objects
QtWS25 Last Chance

Qt-style documentation for Microsoft office COM objects

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • musimbateM Offline
    musimbateM Offline
    musimbate
    wrote on last edited by
    #1

    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.

    Why join the navy if you can be a pirate?-Steve Jobs

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chris17
      wrote on last edited by
      #2

      did you try "dumpdoc":http://qt-project.org/doc/qt-4.8/activeqt-dumpdoc.html ?

      1 Reply Last reply
      0
      • musimbateM Offline
        musimbateM Offline
        musimbate
        wrote on last edited by
        #3

        Thanks,chris17,had missed this,
        but I still have problems using the tool;

        1. 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.

        Why join the navy if you can be a pirate?-Steve Jobs

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chris17
          wrote on last edited by
          #4
          1. you can use specify objects like this Outlook.Application/Session/CurrentUser

          2. 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.

          1 Reply Last reply
          0
          • musimbateM Offline
            musimbateM Offline
            musimbate
            wrote on last edited by
            #5

            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.

            Why join the navy if you can be a pirate?-Steve Jobs

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved