outlook object question

  • Thread starter Thread starter chris.lynn
  • Start date Start date
C

chris.lynn

Any one know the .dll or component for the type lib
msoutl9.olb?
I'm using VS and added a project ref to my project but
it's not on my server. And since it's a .olb file I can't
register it on my server.
My ASP needs ref to it:
<!--METADATA TYPE="TypeLib" NAME="Microsoft Outlook 9.0
Object Library" UUID="{00062FFF-0000-0000-C000-
000000000046}" VERSION="9.0"-->

I need access to the outlook object.

Also, does any one know a good reference for the methods
and properties of the outlook.application object? I'm
trying to extract the site vistors e-mail (I assume the
default e-mail account parameter) thanx.
 
You cannot and should not register any Outlook dlls and/or type libraries;
it is done by the Outlook install.
More than that, you should not use any Office apps (Outlook included) in a
service, including ASP pages running in the context of the IIS service. CDO
1.21 (as long as you are using Exchange, but not a PST store) is fine.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I'm not completely sure of your response. The Outlook object is not just
installed through the OutLook installation. Example, I quite often add
reference to it in my VB projects and deploy the runtime files to then
access the objects, methods, and properties on the client's machine. So
then, a.) I'm not deploying Outlook and b.) I'm testing if the client
has Outlook installed. Once determined I make available all the
functionality. And this is simple and common.

I do this in a normal client/server application. Now then, that means
the object can be utilized in an ASP page.

Visual Studio lists it has a project reference, since I have VS, VS.NET,
etc. therefore it's available for use. The object is recongized on my
development machine but of corse not when it runs in production. I used
to remember what the runtime wrapper files were that deploy this
available object.

As for a service, it is acessed as an object, then properly removed and
set to nothing. Pretty simple and common.

By your title can I assume Outlook Spy offers a product that already
does this. Hence, "spy".

I look forward to more discussion. Thanx.
 
1. Outlook type library that your project refers to is not part of your
project, it is just being referenced. Every machine with Office installed
will have the corresponding type libraries. If they are not installed, that
means Office is not installed and installing the type libraries (which you
cannot do from the legal point of view anyway) will not make Office work.
Worse than that, you can potentially overwrite the type libraries with an
incorrect version and render any code that relies on them invalid.
2. All Office application were designed to run in a context of an
interactive logged on user. Services run in their own context, even if a
service is running as an interactive user, it still does not any access to
the desktop. E.g. if a dialog box is shown, there won't be anybody to
dismiss it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top