Outlook Redemption - HELP


G

Guest

I have an application that I coded to programmatically send emails using
Redemption, on a machine running Outlook 2002. It has been replaced, and the
machine is using Outlook 2003. I installed Redemption as per instructions,
even used regsrvr on it, yet keep getting a "Library Not Registered" error.
Here's the snippet of code before the error:

Dim rMail As Object
Dim rContact As Object
Dim oItem As Object
Dim NS As Object
Dim Sync As Object
Dim Utils As Object
Dim oSent As Object
Dim oSentFolder As Object
Dim Prop As Outlook.UserProperty
'CREATE MAIL ITEM ITEM
Set rMail = New Redemption.SafeMailItem
Set oItem = myApp.CreateItem(olMailItem)

It errors at the Set oItem = myApp.CreateItem(olMailItem) line. Reference
to MSOutlook 11 Object Library is checked, as well as to teh Redemption
Object Library.

Does anyone have any insight, as this has become a major issue.

Thank you
 
Ad

Advertisements

S

Sue Mosher [MVP-Outlook]

That's not a Redemption error. I don't see any statement to instantiate myApp as an Outlook.Application object.
 
G

Guest

My appologies for not clarifying more:

The application that is calling the email is written in Access 97 (yes,
ouch, I know). Due to the complexity of the app and time, it has not been
converted yet.

The code I pasted here works perfectly fine when Outlook is Outlook 2002.
 
S

Sue Mosher [MVP-Outlook]

That still doesn't explain how you are instantiating the myApp object. Since it is involved in the statement that raises an error, that's where your troubleshooting should be focused.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
D

Dmitry Streblechenko

Which line causes the error?
If it is
Set rMail = New Redemption.SafeMailItem
try to replace it with
Set rMail = CreateObject("Redemption.SafeMailItem")

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

Guest

It is erroring at the following line:

Set oItem = myApp.CreateItem(olMailItem)

In my declarations section I have the following:

Dim myApp As New Outlook.Application
Dim myItem As Outlook.MailItem

If this is an Outlook error, what could be causing it? The machine has been
reverted back to Outlook 2002. It has the exact same setup in terms Access,
Outlook, and the code to run the process, yet it doesn't work here.
 
Ad

Advertisements

Ad

Advertisements

G

Guest

The error message is:
"Library Not Registered"

I thought the anti-virus was an issue with only Outlook 2007?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top