![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
That's not a Redemption error. I don't see any statement to instantiate myApp as an Outlook.Application object.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Rob" wrote in message ... 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 |
#3
|
|||
|
|||
![]()
My appologies for not clarifying mo
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. "Sue Mosher [MVP-Outlook]" wrote: That's not a Redemption error. I don't see any statement to instantiate myApp as an Outlook.Application object. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Rob" wrote in message ... 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 |
#4
|
|||
|
|||
![]()
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 "Rob" wrote in message ... My appologies for not clarifying mo 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. "Sue Mosher [MVP-Outlook]" wrote: That's not a Redemption error. I don't see any statement to instantiate myApp as an Outlook.Application object. "Rob" wrote in message ... 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 |
#5
|
|||
|
|||
![]()
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 "Rob" wrote in message ... 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 |
#6
|
|||
|
|||
![]()
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. "Dmitry Streblechenko" wrote: 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 "Rob" wrote in message ... 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 |
#7
|
|||
|
|||
![]()
And what is the error? Have you rceently installed any anti virus apps?
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Rob" wrote in message ... 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. "Dmitry Streblechenko" wrote: 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 "Rob" wrote in message ... 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 |
#8
|
|||
|
|||
![]()
The error message is:
"Library Not Registered" I thought the anti-virus was an issue with only Outlook 2007? "Dmitry Streblechenko" wrote: And what is the error? Have you rceently installed any anti virus apps? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Rob" wrote in message ... 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. "Dmitry Streblechenko" wrote: 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 "Rob" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem using Outlook Redemption VBA code | [email protected] | Outlook and VBA | 8 | June 7th 07 04:00 AM |
How to set CC @ Outlook Redemption | Luk | Outlook and VBA | 8 | November 9th 06 06:20 PM |
How to set CC @ Outlook Redemption | Luk | Outlook - General Queries | 2 | November 8th 06 02:17 PM |
Outlook freezes on Redemption SaveAs | [email protected] | Add-ins for Outlook | 5 | April 27th 06 11:46 PM |
Outlook Redemption | fgibbcollins | Outlook and VBA | 2 | March 16th 06 06:03 PM |