473,406 Members | 2,217 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,406 software developers and data experts.

Late binding to Outlook

Seth Schrock
2,965 Expert 2GB
I just want to make sure that I'm understanding everything correctly. Late binding doesn't require a reference to the Outlook library as it will create it at run time. Does this mean that it will work for different versions of Outlook? I create my databases in Access 2010, but my users run mostly Office 2007 or 2010. I think that we even have some still on 2003 and we just got our first PC that will be running 2013. From what I have read in books and online, I believe that late binding will solve my problem, but unfortunately my test system doesn't have Outlook at all so I can't test my theory.
Feb 27 '13 #1
3 3334
Stewart Ross
2,545 Expert Mod 2GB
Late binding will work OK with different versions of Outlook as long as you are using properties and methods common to all versions, and (of course) that you are not programming features of Outlook that were only introduced in later versions.

One of the downsides of late binding is that you lose all Intellisense features and compiler error checking related to the use of the Outlook methods and properties.

In light of this, be aware that you will need to define any symbolic constants you want to use in your code before referring to them, as without a reference to the relevant code library the symbolic value cannot be looked up at run-time.

-Stewart
Feb 27 '13 #2
Seth Schrock
2,965 Expert 2GB
My code will add a task to Outlook 2010, so I think I'm fine with the symbolic constants (not sure what those are to be honest). Is there a website that lists what features are available for each version so that I can know that I'm using features that are available?
Feb 27 '13 #3
zmbd
5,501 Expert Mod 4TB
Borrowed this from automation as the values are quite difficult to locate - I've also used the same names that intellisense does so I wouldn't have to recode :).

How I developed this was to use the library referenece while building my code so that the intellisense was avaiable... and so that I could find the Constant values to use.

Then as Stewart mentioned, I used only the most basic options as I use this mainly to send code error messages to myself and another in the lab.

Expand|Select|Wrap|Line Numbers
  1. Const olMailItem As Long = 0    'For Late Binding
  2.     Const olFolderInbox As Long = 6 'For Late Binding
  3.     Const olFormatHTML As Long = 2  'For Late Binding
Feb 27 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Mike MacSween | last post by:
Had some trouble with Word automation. Sorted it, in the process thought I would try late binding. Some people reccomend it. So this: *********************************************************...
0
by: Lauren Quantrell | last post by:
I have created the code below to send e-mail using late binding Outlook Automation. I have three questions though... Can I send an Access report without haveing to output and save it as a...
0
by: Rudolf Boettcher | last post by:
A question to the professionals... Is it theoretically possible with the technics of "pure" c# to write a (Outlook) Com Add-in only with late binding ? I know, it is very easy to make this with VS...
9
by: John Smith | last post by:
Hey, I'm having a difficult time finding some good examples of late binding Outlook in C#. Anyone know of any good sites out there? I've googled and MSDN'ed, but have come up a bit empty. ...
30
by: lgbjr | last post by:
hi All, I've decided to use Options Strict ON in one of my apps and now I'm trying to fix a late binding issue. I have 5 integer arrays: dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as...
8
by: Boni | last post by:
Dear All, I would like to allow a conversion of types (i.e. double to int) but prohibit a late binding (because obfuscators don't support this). i.e. obj as object obj=yyy obj.AAA ...
4
by: John | last post by:
Hi What is the late binding equivalent of the below code? Many Thanks Regards Dim O As Outlook.Application
2
by: Ecohouse | last post by:
I've written a function to check emails in Outlook using Access which works. But I need to be able to have it work for different version of Outlook. I'm using Outlook 2002 and I need to also work...
1
by: =?Utf-8?B?U3RldmUgUmFuZGFsbA==?= | last post by:
Hi, Does anyone have any code samples (or links to) for sending an email message via outlook using late binding? Many thanks.
0
by: =?Utf-8?B?U3RldmUgUmFuZGFsbA==?= | last post by:
Hi, Does anyone have any code samples in C# (or links to) for sending an email message via outlook using late binding? Many thanks.
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.