C# does late binding. There's an example towards the end of this article
that sends mail using Outlook and late binding.
http://www.simple-talk.com/dotnet/vi...-com-assembly/
--
Phil Wilson
[Microsoft MVP-Windows Installer]
"Mark Howell" <Mark.Howell (AT) Microsoft (DOT) com> wrote
Quote:
Rather than p/Invoke, is there not an easier way to Interop to Office
products in C# such that I don't have to worry about what version the user
is running? In VB it's merely using late binding (Createobject, etc). I
don't want to include a reference to VB in my C# program and p/Invoke
(GetType.Invoke, etc) is a pain in the ###. Can anyone suggest an easier
way? |