F
Fred Block
Hi All,
I've written an application in VB6 that creates an email in Outlook 2003 and
the code utilizes the MailItem's HTMLBody property. When I compile the
application, the type library references the "Microsoft Outlook 11.0 Object
Library" (on my development machine). When the application is deployed,
user(s) running Outlook 2000 cannot use this feature of my application.
These users do not get an error message but the application displays an
hourglass which doesn't go away. The application does not freeze and you can
click something esle within the GUI to reset the "works" of the application.
For the Outlook 2003 user(s), everything works just fine.
Is the problem with referring to the Outlook 2003 type library, my code (see
below), or something completely different?
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
' Create email item.
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.Subject = "HTML Email Body Dev Test"
.BodyFormat = olFormatHTML
.HTMLBody = GetEmailHTMLBody ' Set body format to HTML
.Display
End With
Thanks in advance!
- Fred
I've written an application in VB6 that creates an email in Outlook 2003 and
the code utilizes the MailItem's HTMLBody property. When I compile the
application, the type library references the "Microsoft Outlook 11.0 Object
Library" (on my development machine). When the application is deployed,
user(s) running Outlook 2000 cannot use this feature of my application.
These users do not get an error message but the application displays an
hourglass which doesn't go away. The application does not freeze and you can
click something esle within the GUI to reset the "works" of the application.
For the Outlook 2003 user(s), everything works just fine.
Is the problem with referring to the Outlook 2003 type library, my code (see
below), or something completely different?
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
' Create email item.
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.Subject = "HTML Email Body Dev Test"
.BodyFormat = olFormatHTML
.HTMLBody = GetEmailHTMLBody ' Set body format to HTML
.Display
End With
Thanks in advance!
- Fred