Can I specify Office version when using QAxObject?
-
In my application I use QAxObject to interact with excel,
excel = new QAxObject("Excel.Application");
I have multiple version of office installed, 2013 and 2016. So is there a way to specify which version to use with the QAxObject? Thanks.
-
The official word from Microsoft is that you can't choose. This article says that basically the one that was installed last (or run in case of newer versions of Word) is the one chosen. The article also explicitly says that what @JonB suggested won't work so you're out of luck I'm afraid.