Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

2007 managed code shared addins using C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mjy - 17 Nov 2006 20:23 GMT
When I run the example from MSDN title 'Creating managed addins for Access
2007' using the C# version the process errors out after reading the
HookupControls procedure in the managed code and returning to Access control.
The error message suggests that there is no instance of the object.  I tried
creating the object, but then the call to the add in malfunctions.  I haven't
been able to find definitive information or other examples about this new
procedure.

The startup on the add in side is working ok (I"ve used breakpoints and
stepped through the code).  The problem occurs when program control returns
from the addin.  I can only conclude that something was left out on the
example, or, that they didn't really ever run it using C#.  Can anyone tell
me what needs to be done to make this work?

Using Office 2007 beta, Visual Studio 2005 and Windows XP service pak 2

Thank you in advance.
Signature

mjy

Brendan Reynolds - 17 Nov 2006 21:08 GMT
Do you have an URL for the MSDN article?

Signature

Brendan Reynolds
Access MVP

> When I run the example from MSDN title 'Creating managed addins for Access
> 2007' using the C# version the process errors out after reading the
[quoted text clipped - 18 lines]
>
> Thank you in advance.
mjy - 17 Nov 2006 22:06 GMT
Yes.  http://msdn2.microsoft.com/en-us/library/aa902693.aspx
Signature

mjy

> When I run the example from MSDN title 'Creating managed addins for Access
> 2007' using the C# version the process errors out after reading the
[quoted text clipped - 13 lines]
>
> Thank you in advance.
Brendan Reynolds - 18 Nov 2006 20:52 GMT
Thanks. I'll take a look and post back here to let you know if I find
anything useful.

Signature

Brendan Reynolds
Access MVP

> Yes.  http://msdn2.microsoft.com/en-us/library/aa902693.aspx
>
[quoted text clipped - 21 lines]
>>
>> Thank you in advance.
Brendan Reynolds - 19 Nov 2006 17:18 GMT
There appear to be two lines missing from the published code ...

           productsListBox = listBox; // this line was missing
           productsListBox.DispListBoxEvents_Event_AfterUpdate +=
               new Microsoft.Office.Interop.Access.
               DispListBoxEvents_AfterUpdateEventHandler(
               productsListBox_AfterUpdate);
           productsListBox.AfterUpdate = "[Event Procedure]"; // this line
was missing

Signature

Brendan Reynolds
Access MVP

> Thanks. I'll take a look and post back here to let you know if I find
> anything useful.
[quoted text clipped - 25 lines]
>>>
>>> Thank you in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.