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. How to use QAxobject in Qt

How to use QAxobject in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 723 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.
  • L Offline
    L Offline
    lso70
    wrote on last edited by
    #1

    Hello,
    I want to W/R word in Qt;

    I know I can use QAxobject to access word like:
    m_axobj = new QAxWidget("Word.Application");
    m_axobj->querySubObject("Documents");
    ..................
    docs->querySubObject("Tables");
    querySubObject("Range()")->property("Text").toString()

    my problem is where can I find the name of the COM object? where can I find the "word " 's com obj name,method,poperty?
    querySubObject("Documents"); docs->querySubObject("Tables"); querySubObject("Range()")->property("Text")

    where can i find a document to tell me the name like "documents","tables","Range","text", that i should use in the querySubObject or property,so i can access the word.
    Thank you!

    JonBJ 1 Reply Last reply
    0
    • L lso70

      Hello,
      I want to W/R word in Qt;

      I know I can use QAxobject to access word like:
      m_axobj = new QAxWidget("Word.Application");
      m_axobj->querySubObject("Documents");
      ..................
      docs->querySubObject("Tables");
      querySubObject("Range()")->property("Text").toString()

      my problem is where can I find the name of the COM object? where can I find the "word " 's com obj name,method,poperty?
      querySubObject("Documents"); docs->querySubObject("Tables"); querySubObject("Range()")->property("Text")

      where can i find a document to tell me the name like "documents","tables","Range","text", that i should use in the querySubObject or property,so i can access the word.
      Thank you!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @lso70
      This is not supplied by Qt. You have to read MS documentation, to see all the "Automation" calls/objects available. I don't know if this is the best, but here is one you could start from:
      https://docs.microsoft.com/en-us/office/vba/api/word.application
      Notice how you are in book "Office VBA Reference".

      L 1 Reply Last reply
      2
      • JonBJ JonB

        @lso70
        This is not supplied by Qt. You have to read MS documentation, to see all the "Automation" calls/objects available. I don't know if this is the best, but here is one you could start from:
        https://docs.microsoft.com/en-us/office/vba/api/word.application
        Notice how you are in book "Office VBA Reference".

        L Offline
        L Offline
        lso70
        wrote on last edited by
        #3

        @JonB that's what I want,thank u much!

        1 Reply Last reply
        0
        • JonBJ JonB referenced this topic on

        • Login

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