Advanced Task Pane WindowObj is null

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

Advanced Task Pane WindowObj is null
 
Pierre Alain Carrier




Posts: 48
Joined: 2011-12-22
Hello,

We've been using the WindowObj from the task pane to retrieve the Workbook associated witht the task pane as described here: https://www.add-in-express.com/forum/read.php?FID=5&TID=15662

This was working, but suddenly we are getting null value when accessing it from ADXBeforeTaskPaneShow when the workbook is opening.

Did something change? Is it because the workbook is still opening? In that case, how do we get the workbook reference so we can display the content properly once everything is opened?
Posted 19 Oct, 2020 15:16:08 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Pierre,

Our guys have explained me that the WindowObj may not be available in that event, too. In this case, you need to try to get it later, after a certain time, say, 100 ms.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Oct, 2020 03:37:30 Top
Pierre Alain Carrier




Posts: 48
Joined: 2011-12-22
Is this still considered the best way to get the workbook to which a pane is attached?
Posted 20 Oct, 2020 09:42:28 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Pierre,

I agree that we could provide some service method or property to help you solve this. We will discuss this.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Oct, 2020 11:39:59 Top
Pierre Alain Carrier




Posts: 48
Joined: 2011-12-22
That would be great!

Thank you for you help, Andrei.
Posted 21 Oct, 2020 12:01:38 Top