AddinExpress.MSO.ADXAddinModule.GetActiveWindowHandle(System.Object, Boolean ByRef) if no document loaded

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

AddinExpress.MSO.ADXAddinModule.GetActiveWindowHandle(System.Object, Boolean ByRef) if no document loaded
 
Daniel Lutz


Guest


Hello support,

i create a simple powerpoint addin to demonstrate this behavior.

Presteps

- Extract archive
- register addin

Steps:

1. Start PowerPoint
2. Opens "Options" dialog without opening a presentation
3. Close "Options" dialog
4. Select addin ribbon tab >> exception occurs

Step 2 and 3 are only necessary to get the ribbon ui withput opening a document. You can also open a document and close it and then select the addin ribbon.

The archive can download https://we.tl/t-WbKXxHp80s (I use Wetransfer a european file hosting service)

Best regards
Daniel
Posted 24 Feb, 2022 02:39:58 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Daniel,

I cannot reproduce the issue.

Please provide a video and exception details. Also, what Excel build are you using?

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Feb, 2022 10:25:13 Top
Daniel Lutz


Guest


Hello Andrei,

the problem occurs in PowerPoint not Excel. Under the following https://we.tl/t-zsMyWNuCJZ you will find a screencast (hostet bei european filehosting service WeTransfer) to see the problem.

- Windows 10 x64 (latest update)
- VS 2019 (latest update)
- Office 365 (Microsoft??? PowerPoint??? f?r Microsoft 365 MSO (Version 2201 Build 16.0.14827.20198) 64 Bit)
- no other addin is loading

An interesting point is that the exception is only visible in debug mode over VS. It seems to be that PowerPoint handles exception different (supress message) in comparison with Word and show no error message dialog if an error occurs. So you should register and debug the example addin.

Steps
1. Open and register example
2. Start debugging
3. Open as example the options dialog and close (to avoid opening a new file but it should also work if you open a new document and close it)
4. If no document open, select the example addin ribbon tab >> error

Best regards
Daniel
Posted 25 Feb, 2022 01:59:28 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Daniel,

I cannot reproduce the issue.

Is your Office 32bit or 64bit?

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 02 Mar, 2022 08:03:17 Top
Daniel Lutz


Guest


Hello Andrei,


  • Microsoft Office 365 MSO (Version 2202 Build 16.0.14931.20116) 64 Bit
  • Add-in Express Versioon 9.5.4661.0


Best regards
Daniel
Posted 02 Mar, 2022 09:31:21 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Daniel,

Unfortunately, I'll be able to test this on Wednesday only.

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 07 Mar, 2022 06:36:35 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Daniel,

This works for us with the last build of Add-in Express for Office and .NET.

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 09 Mar, 2022 07:41:56 Top
Daniel Lutz


Guest


Hello Andrei,

sory fr the late response. I could now test it again the current version 10.0.47 but this is the same problem with this issue.

Best regards. Can you send me an debug Version of this *.MSO.dll for better debugging to find the issue.

Best regards
Daniel
Posted 16 Mar, 2022 07:32:23 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Daniel,

Maybe, you have some other COM add-in enabled?

What PowerPoint build, what bitness and what Office update channel are you using?

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 17 Mar, 2022 03:17:51 Top
Daniel Lutz


Guest


Hello Andrei,

i test it with

Microsoft??? PowerPoint??? f?r Microsoft 365 MSO (Version 2202 Build 16.0.14931.20128) 64 Bit

and all other comaddins were disabled.

Best regards
Daniel
Posted 18 Mar, 2022 01:42:52 Top