473,327 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Outlook with C# - Version Independent

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

Nov 17 '05 #1
2 2368
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.

"Fernando Botelho" <fe********@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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

Nov 17 '05 #2

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...

"Bob Powell [MVP]" wrote:
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.

"Fernando Botelho" <fe********@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Saintor | last post by:
On a local network, I have OFF2K and OFF XP. When I set it up, it was with XP and required Outlook library v10. Of course, it fails when open on a workstation with v9. Is there a way at db...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
3
by: Matt | last post by:
I'm trying to do the following, pulling from Outlook with an independent project: 1. The day's Outlook appointments, with person that the appointment was scheduled with 2. Add a list of...
4
by: henrycortezwu | last post by:
Hi All, I'm thinking of including this method of sending attachments using the code in the link below, it uses Outlook Objects. How to send attachments in an e-mail message by using Visual Basic...
3
by: wizzbangca | last post by:
Hi everyone. Having problems with a utility I am writing for work. The previous IT Director thoughtfully allowed 3 (2000, xp, 2003) versions of outlook to be installed rather than 1. Now I need...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
0
by: Corey66 via DotNetMonster.com | last post by:
Hello! I' ve written a Application, in which I could import all contacts from Outlook into my programme and it works fine, but I use the reference from Outlook 10! My Problem is, that my...
0
by: Pheasant Plucker® | last post by:
Hi there, Not sure if this is the correct ng and I am not a programmer so excuse me but here goes...:-) We have a custom application that has a hook or calls either the Outlook calendar or...
5
by: fniles | last post by:
I am using VB.NET 2005. I created a project using the Microsoft Outlook 8.0 Object Library (Object Model) in my previous machine. Now that I have a new machine, when I try to compile that program...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.