Hi Peter,
Does it work with MS Office 2002? The article points out that it works with
Office XP/2003.
My customer uses MS Office 2002. Initially I intended to build an MS Office
System-Excel Workbook project supported by Office 2003 but unfortunately
it's not supported by Office 2002.
""Peter Huang" [MSFT]" wrote in message
...
Hi
I think in this scenario, we would better write a COM Addin to set the
click call back function. Because when we automation Excel to tell the
Excel to add a context menu item, while setting the call back function in
the Winform's member function. Since Excel will try to call the event
handler, while the event handler function is in another process.
So I think you may try to write a COM Addin so that the event handler in
the C# Com-Addin will be in the same process of Excel(The Addin assembly
will be loaded into Excel process)
Here is a sample add-in code for your reference.
How To Build an Office COM Add-in by Using Visual C# .NET
http://support.microsoft.com/?id=302901
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.