Sean Devenish
Posts: 78
Joined: 2015-11-30
|
Some of our clients embed Excel workbooks into a word document.
We have provided them with an Excel only addin that utilises a custom task pane with Addin Express. They have been experiencing the following error in Microsoft Word when embedding excel, any thoughts?
Date and Time: 28/07/2016 4:25:55 PM
Machine Name: ACC-RDS-01
IP Address: fe80::f802:63c1:c953:d2b3%12
Current User: Accession3\cmh
Application Domain: C:\Users\cmh\AppData\Local\Business Fitness\HowNow Smart Workpapers\2.0.0.45\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0
Exception Source:
Exception Type: System.ArgumentException
Exception Message: Invalid parent window specified.
Exception Target Site: ForwardCallToInvokeMember
---- Stack Trace ----
System.RuntimeType.ForwardCallToInvokeMember(memberName As String, flags As BindingFlags, target As Object, aWrapperTypes As Int32[], msgData As MessageData&)
mscorlib.dll: N 0191 (0xBF) IL
AddinExpress.MSO.ICTPFactory.CreateCTP(CTPAxID As String, CTPTitle As String, CTPParentWindow As Object)
mscorlib.dll: N 00000 (0x0) JIT
AddinExpress.MSO.ADXAddinModule.AddCustomTaskPanes(parent As Object, outlookFolderName As String)
mscorlib.dll: N 0000 (0x0) IL |
|
Andrei Smolin
Add-in Express team
Posts: 19110
Joined: 2006-05-11
|
Hello Sean,
I cannot reproduce this issue using Office 2016 and Add-in Express 8.2. What versions are you using? How do I reproduce the issue?
Andrei Smolin
Add-in Express Team Leader |
|
Sean Devenish
Posts: 78
Joined: 2015-11-30
|
Hi Andrei,
sorry it has taken some time to get back on this one. The client is using the latest version of Add-in Express and Office 2016. The user cannot replicate the issue on command, which makes it hard to replicate. Some documents work fine one moment, and the next they produce this error.
However, the stack trace does indicate the fault is happening in the following line of code in your ADXAddinModule.cs:
ADXTaskPane.ADXCustomTaskPaneInstance instance =
p.Connect(ctpFactory.CreateCTP(p.ControlProgID, caption, (parent == null ? Type.Missing : parent)), parent /*(parent == null ? Type.Missing : parent)*/);
Does the parent need to be checked in case it is an embedded document? |
|
Andrei Smolin
Add-in Express team
Posts: 19110
Joined: 2006-05-11
|
Hello Sean,
Would handling this exception in the OnError event of the add-in module work for you?
Andrei Smolin
Add-in Express Team Leader |
|
Sean Devenish
Posts: 78
Joined: 2015-11-30
|
Sounds like a plan! Thanks |
|