473,802 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Outlook 2000 in C#

Hi

Has anyone got a few lines of sample code/words of wisdom on using Outlook
2000 as a COM object in C#.

I am trying to iterate through a folder and save the attachments for each
mail to the HDD.

I have had a look at the MDSN but although there is loads of blurb I can't
seem to get the code to work and I haven't been able to find any sample code
for this in the MSDN.

Thanks

Paul BJ
Nov 16 '05 #1
3 1324

"Paul Brownjohn" <pa************ *@skynet.be> wrote in message
news:40******** **************@ news.skynet.be. ..
Hi

Has anyone got a few lines of sample code/words of wisdom on using Outlook
2000 as a COM object in C#.

I am trying to iterate through a folder and save the attachments for each
mail to the HDD.

I have had a look at the MDSN but although there is loads of blurb I can't
seem to get the code to work and I haven't been able to find any sample code for this in the MSDN.

Thanks

Paul BJ

Nov 16 '05 #2
go here, they have some C# outlook programming

www.codeproject.com

"Paul Brownjohn" <pa************ *@skynet.be> wrote in message
news:40******** **************@ news.skynet.be. ..
Hi

Has anyone got a few lines of sample code/words of wisdom on using Outlook
2000 as a COM object in C#.

I am trying to iterate through a folder and save the attachments for each
mail to the HDD.

I have had a look at the MDSN but although there is loads of blurb I can't
seem to get the code to work and I haven't been able to find any sample code for this in the MSDN.

Thanks

Paul BJ

Nov 16 '05 #3
Paul,
For a number of resources on using Outlook from .NET see:
http://www.microeye.com/resources/res_outlookvsnet.htm

I recently came across the following http://g8.cx/mapi/ "Extended MAPI with
C#" (I have not yet tried this library).

Hope this helps
Jay

"Paul Brownjohn" <pa************ *@skynet.be> wrote in message
news:40******** **************@ news.skynet.be. ..
Hi

Has anyone got a few lines of sample code/words of wisdom on using Outlook
2000 as a COM object in C#.

I am trying to iterate through a folder and save the attachments for each
mail to the HDD.

I have had a look at the MDSN but although there is loads of blurb I can't
seem to get the code to work and I haven't been able to find any sample code for this in the MSDN.

Thanks

Paul BJ

Nov 16 '05 #4

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

Similar topics

15
4319
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
0
1139
by: sameer | last post by:
Hi All, My application which is a desktop exe is being used over Terminal services. The development environment of the application is .NET 1.1 framework VB.NET using Not touch Deployment. sql server 2000 database
3
1944
by: Leah | last post by:
I'm updating an app currently in Access 2000, which uses Outlook 2000 (sr1a) to send emails behind the scenes. Several issues have come up since I've started work on this. This office is moving to Office 2003, and the annoying security prompts for Outlook automation are not wanted by the customer. So, I started looking at CDO mail. Lots of stuff there, but nothing works - in Access 2000. (Known bug, alternative is to use outlook...
1
2154
by: Richard | last post by:
All, I am writing an Outlook 2000 Add-In .DLL program. I have applied the necessary knowledge base fixes to enable event handling in Outlook 2000 and everything is working except for one thing: When I make changes to the items in a folder I get the ItemAdd() event and the ItemChange() event but I do not ever get the ItemRemove() event.
6
5369
by: LEBRUN Thomas | last post by:
Hello :) I would like to use Outlook 2003 in my application so for that, i've added the referece to Outlook 11.0 Object Model to my project. Then, I try this simple code : using System; using Microsoft.Office.Interop.Outlook;
4
5109
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 things happening will be: a new email is created and some text is placed in the body, then the email window is displayed. The user can close the window or select some recipients and send the message. I would like some info on how to do this correctly....
4
6000
by: Nathan Carroll | last post by:
Why am I able to use this in Outlook and not do the same from .Net. My problems centers around the Items in the xp version of below i used the interop references. Does something similar exist for 2000? 'this works fine in ol 2000 Dim item As Object Dim items As Outlook.items Dim itemcount As Integer Dim subfolder As MAPIFolder Dim mi As MailItem
8
2700
by: Li Pang | last post by:
Hi, I used following codes to pass a message item from CDO to Outlook. They worked fine when I used outlook 2000, but get an error of "Specified cast is not valid." when I used Outlook 2003. Anybody has an ideal? Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem Dim adoMsg As MAPI.Message outlookMsg = Microsoft.Office.Interop.Outlook.Application.Session.GetItemFromID(cdoMsg.ID)
5
3931
by: Siv | last post by:
Hi, A little while ago I asked if anyone could help me with how to create an email using MS Outlook that contained an embedded picture file. Thanks to Jay Harlow I was able to get this working using a code example from http://www.outlookcode.com/d/code/htmlimg.htm that details the procedure and with a bit of tweaking I managed to get it working really well. I now find that there is a new user on a laptop that always gets an error at...
3
5815
by: bobdydd | last post by:
Hi Everybody Access 2000, Outlook 2000 Windows XP I am running the code below to open Microsoft Outlook from a Command Button. It works fine until I tried it on a machine that has Office installed on something other than the "C" drive. So can anyone advise me how to open Outlook by using a relative path rather than the code I am using here.
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10303
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10282
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9111
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.