HighTechTalks DotNet Forums  

Excel VBA – C# COM Interop

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Excel VBA – C# COM Interop in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Senthil
 
Posts: n/a

Default Excel VBA – C# COM Interop - 05-21-2007 , 10:31 AM






1. Do we have any standard design patterns or architectural guidelines for
VBA – C# Interop. If so, kindly provide pointers

2. We have a situation where our C# assemblies (dlls) are not strongly typed
and it raises events asynchronously based on certain business actions. As a
business requirement these events should be bubbled up to the Excel – VBA
layer. The obvious option is to develop a new C# COM wrapper assembly that
raises events to the VBA layer. But there are a couple of challenges to
overcome in this integration,

• As a deployment requirement we need to share the dlls in a network drive
including the configuration file (Excel.Exe.Config). Also some of our
dependent assemblies are not strongly typed. How to achieve this?
• Is is possible to specify a generic configuration files for this COM
interop wrapper assembly (like, COMWrapper.dll.Config) so that any excel or
word VBA that uses this wrapper can use this generic config file. Also, in
the config file is it possible to specify the path of the dependent
assemblies like “AssemblyA.dll path=”L:\Test\AssemblyA.dll” , “AssemblyB.dll
path=”I:\Test\AssemblyB.dll”
(The basic reason is to avoid deployment at individual machines)

Kindly provide me with a standard approach to solve this requirement.

Thanks in Advance.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.