w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
ActiveQt: Activate an already open word document

I found the solution to my problem, by using the setControl function with the UUID for word I was able to access a word document that was already opened.

 QAxObject* wordApplication;
 QAxObject* doc;
 wordApplication = new QAxObject(this);
 wordApplication->setControl(("{000209FF-0000-0000-C000-000000000046}&"));
 doc = wordApplication->querySubObject("Documents()","my.doc");




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.