Hi
I need to package one of my access apps and send to clients. My app calls
outlook to send emails. The problem is that client pcs can each have a
different version of outlook (2000, xp, 2003 etc.). How can I package my app
that it will work with any version of outlook?
Thanks
Regards 17 1821
If you package in 2000 then 2003 will be able to read it
What you want is Late Binding.
Rather than set a reference to Outlook (which is linked to a specific version),
you would do something like this ...
Dim objOutlook As Object
Set objOutlook = CreateObject("O utlook.Applicat ion")
The problem is that you don't get intellisense when you do this, so I usually
write my code with bound objects, using a specific reference, and then unbind
them before delivery ... or whenever I'm done working with the objects.
--
Danny J. Lesandrini dl*********@hot mail.com http://amazecreations.com/datafast
"John" <Jo**@nospam.in fovis.co.uk> wrote ... Hi
I need to package one of my access apps and send to clients. My app calls outlook to send emails. The problem is that client pcs can each have a different version of outlook (2000, xp, 2003 etc.). How can I package my app that it will work with any version of outlook?
John wrote: Hi
I need to package one of my access apps and send to clients. My app calls outlook to send emails. The problem is that client pcs can each have a different version of outlook (2000, xp, 2003 etc.). How can I package my app that it will work with any version of outlook?
Late binding. This allows you to make use of external libraries without
setitng a reference to them and (for the most part) makes the code version
independent.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
I am using
Private WithEvents objOutlook As Outlook.Applica tion
and if I change it to
Private WithEvents objOutlook As Object,
I get the error Compile Error, Expected: Identifier on the word Object. Any
way to fix this?
Thanks
Regards
"Danny J. Lesandrini" <dl*********@ho tmail.com> wrote in message
news:mN******** *************** *******@giganew s.com... What you want is Late Binding.
Rather than set a reference to Outlook (which is linked to a specific version), you would do something like this ...
Dim objOutlook As Object Set objOutlook = CreateObject("O utlook.Applicat ion")
The problem is that you don't get intellisense when you do this, so I usually write my code with bound objects, using a specific reference, and then unbind them before delivery ... or whenever I'm done working with the objects.
-- Danny J. Lesandrini dl*********@hot mail.com http://amazecreations.com/datafast
"John" <Jo**@nospam.in fovis.co.uk> wrote ... Hi
I need to package one of my access apps and send to clients. My app calls outlook to send emails. The problem is that client pcs can each have a different version of outlook (2000, xp, 2003 etc.). How can I package my app that it will work with any version of outlook?
Unfortunately, I don't believe you can use Late Binding in conjunction with
WithEvents.
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"John" <Jo**@nospam.in fovis.co.uk> wrote in message
news:OO******** ******@TK2MSFTN GP15.phx.gbl... I am using
Private WithEvents objOutlook As Outlook.Applica tion
and if I change it to
Private WithEvents objOutlook As Object,
I get the error Compile Error, Expected: Identifier on the word Object. Any way to fix this?
Thanks
Regards
"Danny J. Lesandrini" <dl*********@ho tmail.com> wrote in message news:mN******** *************** *******@giganew s.com... What you want is Late Binding.
Rather than set a reference to Outlook (which is linked to a specific version), you would do something like this ...
Dim objOutlook As Object Set objOutlook = CreateObject("O utlook.Applicat ion")
The problem is that you don't get intellisense when you do this, so I usually write my code with bound objects, using a specific reference, and then unbind them before delivery ... or whenever I'm done working with the objects.
-- Danny J. Lesandrini dl*********@hot mail.com http://amazecreations.com/datafast
"John" <Jo**@nospam.in fovis.co.uk> wrote ... Hi
I need to package one of my access apps and send to clients. My app calls outlook to send emails. The problem is that client pcs can each have a different version of outlook (2000, xp, 2003 etc.). How can I package my app that it will work with any version of outlook?
I have no interest in changing or criticizing anyone's practice of
automating Outlook in order to send e-mails.
I used to do this myself. I wrote my first code to do so about eight
years ago. Not so surprisingly there was a discussion then about early
and late binding.
I note there are many posts to CDMA outlining problems with automating
Outlook. I had problems myself, notably when system administrators
enetered fake addresses into system address books in order to confuse
the Melissa virus. They were successfull and they were also successful
in disabling an address search in my application. As they didn't tell
anyone, let alone me, of their covert activity, I was at a loss to
explain why the application worked one day, but not the next. [My first
rule of Access is: It's IT ('s fault).]
For beginners or non-previous-email senders who lurk I would like to
point out that beginning with Windows 2000, Microsoft has provided us
with CDO. CDO is implemented through CDOSys.Dll. CDO sends mail
quietly, simply, quickly, without warning messages and without fuss. I
use CDO now, I don't use Outlook.
Hi Lyle
Many thanks for that. Is it possible to post some sample code?
Many Thanks
Regards
"Lyle Fairfield" <ly***********@ aim.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . I have no interest in changing or criticizing anyone's practice of automating Outlook in order to send e-mails.
I used to do this myself. I wrote my first code to do so about eight years ago. Not so surprisingly there was a discussion then about early and late binding.
I note there are many posts to CDMA outlining problems with automating Outlook. I had problems myself, notably when system administrators enetered fake addresses into system address books in order to confuse the Melissa virus. They were successfull and they were also successful in disabling an address search in my application. As they didn't tell anyone, let alone me, of their covert activity, I was at a loss to explain why the application worked one day, but not the next. [My first rule of Access is: It's IT ('s fault).]
For beginners or non-previous-email senders who lurk I would like to point out that beginning with Windows 2000, Microsoft has provided us with CDO. CDO is implemented through CDOSys.Dll. CDO sends mail quietly, simply, quickly, without warning messages and without fuss. I use CDO now, I don't use Outlook.
More's the &^%$#$!@ pity.
Some of the SMTP mail components have terrific functionality, but also
use WithEvents. Since my own rule is "no early binding", I can't use
any of those components.
TC This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Trevor Fairchild |
last post by:
I have an application that I've programmed - it works fine in VB6, and
when compiled and packaged, installs and operates fine on my machine.
When I install it on another machine (without VB6), it craps out,
providing nothing more insightful than the WinXP message that for some
reason the program has stopped working - would you like to tell
Microsoft about it?
I have put in msgboxes throughout the program to identify exactly what
line...
|
by: art |
last post by:
Hi All,
I have a small question.
I've just installed visual studio for the microsoft office system which should let me deploy access files with run time.
I see that the packaging wizard is shown in my start menu but when I run it all I get is a blank white form with buttons for "help", "cancel" and "next" the blank white form also has a title of "custom startup wizard" which is not what I clicked on.
I also cannot seem to include it to...
|
by: Blair Adamache |
last post by:
IBM is hosting a user focus session to get feedback on a new design
concept for installing software products and maintenance. The
information below gives a brief summary of the information about the
session. If you are interested and feel that you are qualified, please
send an e-mail to Karen Ball at kball@protocolusa.com. Or you can phone
Sam Sellers or Flo Tassel at 800-615-9287. Protocol is a recruiting
agency that IBM has hired to...
|
by: Zen |
last post by:
From http://support.microsoft.com/kb/828956/
"Note Microsoft does not support the use of multiple versions of Microsoft
Office on a Terminal Server. Coexistence is not supported on versions of
Windows that are running Terminal Services. If you have to run multiple
versions of Office, disable Terminal Services"
The problem:
|
by: Evan Stone |
last post by:
If one is developing a .NET application, how can I develop an application
that uses COM automation that targets multiple versions of Word? For
example, the signature for the Document.Open method is different from
version 9 to version 11 (and I'm sure there are other variations as well),
and I'm wondering if there's some easy way to deal with it.
At present I'm only concerned with supporting 9-11 (i.e. Word 2000, XP, and
2003), though I'd...
| |
by: Dave |
last post by:
Apologies for the newbie question. I have created a vb.net program for
my company that is designed to work with Word Templates (about forty of
them that we commonly use) that are selected by the user and populated
(with info from an Access database) at run-time, then saved as Word
documents. The program I have coded works fine -- it does what I need
it to do. But it has two problems: (1) it runs very slowly, and (2) it
does not seem to...
|
by: Allen Browne |
last post by:
If you develop for others, you probably have multiple versions of Access
installed so you can edit and create MDEs for clients in different versions.
This works fine under Windows XP, even with Access 2007 installed.
It does *not* work under Windows Vista Ultimate. After running Access 2007,
when you open an earlier version of Access, no code works, because the
references are fouled up. And Access 97 does not work at all.
Access should...
|
by: John Nagle |
last post by:
I've been installing Python and its supporting packages on
a dedicated server with Fedora Core 6 for about a day now.
This is a standard dedicated rackmount server in a colocation
facility, controlled via Plesk control panel, and turned over
to me with Fedora Core 6 in an empty state. This is the
standard way you get a server in a colo today.
Bringing Python up in this completely clean environment is
a huge hassle, and it doesn't...
|
by: Mr Seth T |
last post by:
Hey,
I have spent several days trying to find out how to do something, and
i don't know if I am blind or what, but I can not find it. I am
developing a web app and I need it to run an activex control. I have
developed the control and it runs great on my development system
(VS2005, C#, IE6, Win2000Pro, output is a DLL) because as far as I can
tell, the IDE registers the DLL. The problem is packaging it so it
registers itself on any...
|
by: jim |
last post by:
I am looking for an application that will wrap my .Net application (and any
needed .Net parts) into a single exe.
I know of Thinstall ($4,000 for application and per copy fees for your exes)
and of Xenocode (~$1,500 plus ~ $12 per copy of your exe). But, I'd like
something that is actually affordable for a hobbyist programmer.
This capability (Thinstall's being able to wrap a .Net app and ship it as a
single exe) would be a FANTASTIC...
|
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,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |