473,386 Members | 1,609 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,386 software developers and data experts.

Outlook in VB.NET

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 in the new machine, it gives me
erros like "Type 'Outlook.Application' is not defined", "Type
'Outlook.NameSpace' is not defined".
I have MS Outlook in my new machine.
In the new machine when I go to "Add Reference", select the COM tab, the
only MS Outlook listed is "Microsoft Outlook 11.0 Object Library", while in
the previous machine both "Microsoft Outlook 11.0 Object Library" and
"Microsoft Outlook 8.0 Object Model".
If I select "Microsoft Outlook 11.0 Object Library", in the program when I
type in "dim ol as new", only "OutlookMail" is listed, while in the previous
machine "Outlook" and "OutlookMail" are listed.
How can I compile this program in my new machine ?

Thank you.
Feb 28 '08 #1
5 2398
fniles <fn****@pfmail.comwrote:
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 in the
new machine, it gives me erros like "Type 'Outlook.Application' is
not defined", "Type 'Outlook.NameSpace' is not defined".
I have MS Outlook in my new machine.
In the new machine when I go to "Add Reference", select the COM tab,
the only MS Outlook listed is "Microsoft Outlook 11.0 Object
Library", while in the previous machine both "Microsoft Outlook 11.0
Object Library" and "Microsoft Outlook 8.0 Object Model".
If I select "Microsoft Outlook 11.0 Object Library", in the program
when I type in "dim ol as new", only "OutlookMail" is listed, while
in the previous machine "Outlook" and "OutlookMail" are listed.
How can I compile this program in my new machine ?
Ask in microsoft.public.outlook.program_vba
--
Brian Tillman [MVP-Outlook]
Feb 28 '08 #2


"Brian Tillman" wrote:
fniles <fn****@pfmail.comwrote:
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 in the
new machine, it gives me erros like "Type 'Outlook.Application' is
not defined", "Type 'Outlook.NameSpace' is not defined".
I have MS Outlook in my new machine.
In the new machine when I go to "Add Reference", select the COM tab,
the only MS Outlook listed is "Microsoft Outlook 11.0 Object
Library", while in the previous machine both "Microsoft Outlook 11.0
Object Library" and "Microsoft Outlook 8.0 Object Model".
If I select "Microsoft Outlook 11.0 Object Library", in the program
when I type in "dim ol as new", only "OutlookMail" is listed, while
in the previous machine "Outlook" and "OutlookMail" are listed.
How can I compile this program in my new machine ?

Ask in microsoft.public.outlook.program_vba
--
Brian Tillman [MVP-Outlook]
But it's not a VBA question, unless I'm missing something.

I believe that you need to have the earliest version of outlook on the
development platform that you wish to support. Outlook 8.0 is Outlook '97,
so do you really need to support that?
Feb 28 '08 #3
There are no .NET specific programming groups for Outlook, the group Brian
recommended is as good as any.

You need the earliest version but Outlook 2000 was the first to support COM
Addins. Managed code for Outlook versions earlier than 2003 is funky and not
really the best way to go. There is a PIA for Outlook 2002 that can be
modified to work with Outlook 2000, but not everything works correctly. If
you now have Outlook 2003 on your computer program for that unless there's
some reason you still need to support an 11 year old version of Outlook.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:1C**********************************@microsof t.com...
>

"Brian Tillman" wrote:
>fniles <fn****@pfmail.comwrote:
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 in the
new machine, it gives me erros like "Type 'Outlook.Application' is
not defined", "Type 'Outlook.NameSpace' is not defined".
I have MS Outlook in my new machine.
In the new machine when I go to "Add Reference", select the COM tab,
the only MS Outlook listed is "Microsoft Outlook 11.0 Object
Library", while in the previous machine both "Microsoft Outlook 11.0
Object Library" and "Microsoft Outlook 8.0 Object Model".
If I select "Microsoft Outlook 11.0 Object Library", in the program
when I type in "dim ol as new", only "OutlookMail" is listed, while
in the previous machine "Outlook" and "OutlookMail" are listed.
How can I compile this program in my new machine ?

Ask in microsoft.public.outlook.program_vba
--
Brian Tillman [MVP-Outlook]

But it's not a VBA question, unless I'm missing something.

I believe that you need to have the earliest version of outlook on the
development platform that you wish to support. Outlook 8.0 is Outlook
'97,
so do you really need to support that?

Feb 29 '08 #4
Family Tree Mike <Fa************@discussions.microsoft.comwrote:
But it's not a VBA question, unless I'm missing something.
What you're missing is that this group isn't geared for programming
questions. Since there is no .NET programming group, the vba group will, at
least, have other programmers visiting it. You MAY find a programmer here,
like Ken Slovak, but you're more likely to have your message viewed by
someone who can help if you're in a programming group. It's like being at a
convention and wanting to ask a medical question of a cardiologist. There
certainly might find that one of the attendees is a cardiologist, but your
chances are better if the convention is a physician's convention. (Although
you might run into a cardiologist in this newsgroup, too.)
--
Brian Tillman [MVP-Outlook]

Feb 29 '08 #5


"Brian Tillman" wrote:
Family Tree Mike <Fa************@discussions.microsoft.comwrote:
But it's not a VBA question, unless I'm missing something.

What you're missing is that this group isn't geared for programming
questions. Since there is no .NET programming group, the vba group will, at
least, have other programmers visiting it. You MAY find a programmer here,
like Ken Slovak, but you're more likely to have your message viewed by
someone who can help if you're in a programming group. It's like being at a
convention and wanting to ask a medical question of a cardiologist. There
certainly might find that one of the attendees is a cardiologist, but your
chances are better if the convention is a physician's convention. (Although
you might run into a cardiologist in this newsgroup, too.)
--
Brian Tillman [MVP-Outlook]
Actually, this really threw me for a loop, until I just saw that this
message also went to Microsoft.Public.Outlook. I was viewing it from
Microsoft.Public.DotNet.Languages.VB, which does have programmers (and I
suppose cardiologists from time to time).
>
Mar 1 '08 #6

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

Similar topics

2
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
3
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
8
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....
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...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.