Adding image causes an Exception

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

Adding image causes an Exception
 
Roland Smeets




Posts: 12
Joined: 2005-10-07
Hi,

I am using the .NET 2005 version and I created a project in C# without SHIM!!

As soon as I set the image properties of the commandbarbutton, the add-in creates an exception on the "put_image" method. If required I could sent you an screengrab of the error....please not, when using a SHIM and VB there is no problem...but without it crashes....very strange..

Please advice..


Roland
rsmeets<remove>@cadac.com
Posted 07 Feb, 2006 03:00:46 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Roland.

I have just tested this situation and all works fine on my PC. Can you please send me your C# project (without shim)? I will test it on my PC.
Posted 07 Feb, 2006 09:43:00 Top
Roland Smeets




Posts: 12
Joined: 2005-10-07
I would love to, if you give me an email addres I can use to upload the info.
Posted 08 Feb, 2006 05:40:51 Top
Roland Smeets




Posts: 12
Joined: 2005-10-07
FYI: AddInExpress VS2005 2.2.1752

The exception info below:


Detailed technical information follows:
---
Date and Time: 08-02-2006 13:57:53
Machine Name: WP34002
IP Address: 172.16.1.62
Current User: CADAC\rsmeets

Application Domain: F:\Development.NET\Cadac\Organice.NET\Organice.Release\bin\
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_32/AddinExpress.MSO/2.2.1752.2__c20c070a1fc9a144/AddinExpress.MSO.dll
Assembly Full Name: AddinExpress.MSO, Version=2.2.1752.2, Culture=neutral, PublicKeyToken=c20c070a1fc9a144
Assembly Version: 2.2.1752.2
Assembly Build Date: 18-10-2004 00:00:04

Exception Source: Office
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception Target Site: set_Picture

---- Stack Trace ----
Microsoft.Office.Core._CommandBarButton.set_Picture(ppdispPicture As IPictureDisp)
AddinExpress.MSO.dll: N 00000 (0x0) JIT
AddinExpress.MSO.ADXCommandBarButton.PutImage()
AddinExpress.MSO.dll: N 0860 (0x35C) IL

Posted 08 Feb, 2006 07:29:26 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Roland.

I have just sent you an email.
Posted 08 Feb, 2006 11:30:39 Top
Donald Pope




Posts: 11
Joined: 2006-01-26
Hi there,

What was the fix that sort this problem out?
Posted 19 Mar, 2006 07:36:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Donald.

There is no problems with images in ADX.
You can send me the project if you have any difficulties with images.
I will check the code.
I have just sent you my email address.
Posted 20 Mar, 2006 17:15:23 Top