A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption CopyTo(CDO.Message)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 20th 07, 11:22 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Redemption CopyTo(CDO.Message)

I am trying to access Outlook message attachments data more
efficiently.

Right now, I am using Redemption.Attachment.SaveAsFile() and then I
load them back in a Stream with ADODB.Stream.LoadFromFile(), but that
adds a significant overhead in read/write time, which I hope I could
avoid. Yes, I know Redemption provides AsText()/AsArray() for
attachments, but these crash [out of memory] when processing large
attachments.

I stumbled on something in the Redemption History which cought my
attention immediately:

All Redemption items have a CopyTo() method which allows to

copy
a Redemption item into any Outlook Object Model or CDO message.


Being able to copy a MailItem into a CDO.Message would mean that I
could access the attachments data using an ADODB.Stream. The problem
is that if I try this litterally, as in this little piece of code:

' "smi" is a Redemption.SafeMailItem
Dim msg As New CDO.Message
Call smi.CopyTo(msg) '-- error

I get the following error:

Run-time error '-2147418113 (8000ffff)':
Method 'MAPIOBJECT' not supported by automation object


What am I getting wrong? I am using "VB6" and "CDO for Windows 2000".
Or is there another way to do what I am trying to do (access
attachment data more efficiently)?

Thanks for your help.

Ads
  #2  
Old September 20th 07, 11:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption CopyTo(CDO.Message)

That refers to CDO 1.21, not CDO for Windows or any of the many other CDO's.
You would need to install the optional CDO component from the Office CD or
download it from MS if you're using Outlook 2007. It's no longer on the
Office CD in Office 2007.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
I am trying to access Outlook message attachments data more
efficiently.

Right now, I am using Redemption.Attachment.SaveAsFile() and then I
load them back in a Stream with ADODB.Stream.LoadFromFile(), but that
adds a significant overhead in read/write time, which I hope I could
avoid. Yes, I know Redemption provides AsText()/AsArray() for
attachments, but these crash [out of memory] when processing large
attachments.

I stumbled on something in the Redemption History which cought my
attention immediately:

All Redemption items have a CopyTo() method which allows to

copy
a Redemption item into any Outlook Object Model or CDO message.


Being able to copy a MailItem into a CDO.Message would mean that I
could access the attachments data using an ADODB.Stream. The problem
is that if I try this litterally, as in this little piece of code:

' "smi" is a Redemption.SafeMailItem
Dim msg As New CDO.Message
Call smi.CopyTo(msg) '-- error

I get the following error:

Run-time error '-2147418113 (8000ffff)':
Method 'MAPIOBJECT' not supported by automation object


What am I getting wrong? I am using "VB6" and "CDO for Windows 2000".
Or is there another way to do what I am trying to do (access
attachment data more efficiently)?

Thanks for your help.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption possibility Johnny E Jensen Outlook and VBA 3 June 21st 06 03:33 PM
strong name and Redemption Rog Add-ins for Outlook 3 April 5th 06 06:03 PM
Redemption Christoph Add-ins for Outlook 5 March 6th 06 04:26 PM
Crash with Redemption Lars Ibsen Outlook and VBA 4 February 13th 06 06:29 AM
Redemption MAPITable Dmitry Streblechenko Add-ins for Outlook 1 January 12th 06 05:09 AM


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.