FindControlObj problem in PowerPoint

Add-in Express™ Support Service
That's what is more important than anything else

FindControlObj problem in PowerPoint
 
Igor Govorov




Posts: 83
Joined: 2014-02-12
When I'm using FindControlObj function to find a control, I'm getting wrong control in the second document in PowerPoint.

It seems, that there is a different CommandBars object for each document in PowerPoint.

This code returns the same value for different documents, but it should return different values (if there were different number of changes in the documents):

var ctrl = (CommandBarComboBox)FindControlObj(null, 128/*Undo*/)
var count = ctrl.ListCount;


Can you suggest the correct way for getting the needed control in PowerPoint?
Posted 30 Mar, 2015 04:43:58 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Igor,

Thank you for pointing this out for us. I've reproduced the issue; it is now filed under #6720 in our bug-tracking DB. To work around this, you can use the CommandBars.Findcontrol method as demonstrated at https://www.add-in-express.com/forum/read.php?FID=5&TID=13077.


Andrei Smolin
Add-in Express Team Leader
Posted 30 Mar, 2015 06:21:10 Top
Igor Govorov




Posts: 83
Joined: 2014-02-12
Will you release a new version with a bug fix? Or will you provide a patch for the bug?
Posted 30 Mar, 2015 07:11:36 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
The fix will be included into a new build. There's a good chance it will be published this week.


Andrei Smolin
Add-in Express Team Leader
Posted 30 Mar, 2015 07:19:12 Top
Igor Govorov




Posts: 83
Joined: 2014-02-12
Thank you a lot :)
Posted 30 Mar, 2015 07:23:23 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 30 Mar, 2015 09:52:38 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello Igor,

We've published the build, see https://www.add-in-express.com/downloads/adxnet.php.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2015 03:37:01 Top