Outlook with C# - Version Independent

  • Thread starter Thread starter Fernando Botelho
  • Start date Start date
F

Fernando Botelho

Hi,

Somebody would know to give information about to create an email with
outlook (to create a email and open it in outlook) with C#?

I would not like to use PIA of the Office, because I don't know which
the version of the Outlook the users will be using.

Therefore, it would like to know if exists some way to create an email
and to open the same in outlook, without using the PIA.

Regards,
Fernando Botelho
 
I think that if you import the COM interfaces from a type-library you'll get
a wizard-manufactured interop assembly that should remain backwards
compatible with earlier versions.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Outlook 2000 Note: The generated Interop Assembly for Outlook 2000 does not
expose events {NewMail, ItemAddedToFolder, etc...}.

There is a knowledge base article out there about how to fix this - you have
to disassemble the generated IA, modify the IL to expose events, and then
reassemble it. There is a knowledge base Q-number that describes the
procedure...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top