"Interface not supported" Error

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

"Interface not supported" Error
 
Spiros Nikolopoulos




Posts: 42
Joined: 2012-01-05
Hi I have a simple demo project that showing a side panel for (word,excel,power point).
it is based on TadxCOMAddInModule and includes a TadxRibbonTab.

Using office 2010 and delphi XE2.
Everything works as expected for Excel and power point
the side panel can be show or hidden using a button on RibbonTab as:



procedure TAddInModule.xwCMSDMSHub_ribonControls0Controls0Controls0Click(
  Sender: TObject; const RibbonControl: IRibbonControl);
begin
  TaskPanes.Items[0].Visible := not TaskPanes.Items[0].Visible;
  if  TaskPanes.Items[0].Visible then
   begin
     if TaskPanes.Items[0].DockPosition in [adxCTPDockPositionRight,adxCTPDockPositionLeft]  then
        TaskPanes.Items[0].Width   := 296;
   end;

end;


BUT in word 2010 every time I load a new document I get this EIntfCastError "Interface not supported" Error!

Any help appreciated
Thanks
Posted 17 May, 2012 11:41:07 Top
Andrei Smolin


Add-in Express team


Posts: 14980
Joined: 2006-05-11
Hi Spiros,

The issue is caused by a problem in XE2 SP4, please find more details in http://www.add-in-express.com/forum/read.php?SHOWALL_1=1&FID=1&TID=10531. I've just sent you an email containing the workaround discussed in that thread. This workaround works on our side, please let me know about your results in any case.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 May, 2012 03:11:10 Top
Spiros Nikolopoulos




Posts: 42
Joined: 2012-01-05
Yes!
it works
Thanks
Posted 18 May, 2012 05:28:54 Top
Andrei Smolin


Add-in Express team


Posts: 14980
Joined: 2006-05-11
Many thanks!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 May, 2012 05:49:49 Top
Marcello Vezzelli




Posts: 2
Joined: 2012-06-18
I have the same problem, could you send the patch to me too?
Thanks.
Posted 18 Jun, 2012 03:44:27 Top
Andrei Smolin


Add-in Express team


Posts: 14980
Joined: 2006-05-11
Hi Marcello,

I've just sent you an email. Please elt me know if the workaround works for you.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Jun, 2012 04:14:43 Top
Marcello Vezzelli




Posts: 2
Joined: 2012-06-18
That solved the issue, thank you!
Posted 18 Jun, 2012 05:31:29 Top