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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to open and extract the content in attachment?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 28th 07, 09:36 AM posted to microsoft.public.outlook.program_vba
Raju A[_2_]
external usenet poster
 
Posts: 3
Default How to open and extract the content in attachment?

Hi,

Is it possible to open and extract the content in attachment and save it to
MS Access.

Regards
Raju A
  #2  
Old August 28th 07, 03:24 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to open and extract the content in attachment?

Sure, save the attachment to the file system and load it into Access.

If you don't want to do that you'd have to either be running Outlook 2007 or
a call a lower level API than the Outlook object model to get at the
PR_ATTACH_DATA_BIN property (0x37010102), which is a PT_BINARY property.
You'd also need to access other properties of that item in the Attachments
table for attachment name and so on.

If you try to use the OOM from Outlook 2007 with the PropertyAccessor object
to retrieve PR_ATTACH_DATA_BIN it must be under about 4KB or you'll get a
MAPI_E_NOT_ENOUGH_MEMORY error, since PropertyAccessor doesn't fall back to
an IStream to read properties larger than it can handle with a direct MAPI
call.

--
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


"Raju A" wrote in message
...
Hi,

Is it possible to open and extract the content in attachment and save it
to
MS Access.

Regards
Raju A


 




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
Scan & Extract Email Content Buddy Outlook and VBA 1 February 6th 07 06:57 AM
How to open a msg attachment? SA Outlook - General Queries 1 January 16th 07 11:25 PM
Extract data from email attachment and add to datbase? [email protected] Outlook - General Queries 1 October 30th 06 06:15 AM
Attachment Content at risk of being altered AndyH Outlook - General Queries 3 May 31st 06 04:16 AM
Open an Attachment Eric Legault [MVP - Outlook] Outlook - Using Forms 0 January 10th 06 05:32 PM


All times are GMT +1. The time now is 12:56 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.