PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Extract a bmp for the body

Reply

Extract a bmp for the body

 
Thread Tools Rate Thread
Old 04-08-2004, 03:53 PM   #1
Michael Tissington
Guest
 
Posts: n/a
Default Extract a bmp for the body


I have a journal entry that has a screen image (from ctrl + print screen)
pasted into it.

I need to extract this image (bmp) and save it as a file.

When I use the Outlook object model, I can see one attachment but it is not
a valid bmp file.

How can I extract this image and save it to disk?

Thanks.

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com



  Reply With Quote
Old 05-08-2004, 11:04 PM   #2
Dmitry Streblechenko \(MVP\)
Guest
 
Posts: n/a
Default Re: Extract a bmp for the body

You get an OLE attachment (PR_ATTACH_METHOD == ATTACH_OLE). You will need to
covert the IStorage data into a bitmap somehow...

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


"Michael Tissington" <michael@nospam.com> wrote in message
news:O57lTLjeEHA.596@TK2MSFTNGP11.phx.gbl...
> I have a journal entry that has a screen image (from ctrl + print screen)
> pasted into it.
>
> I need to extract this image (bmp) and save it as a file.
>
> When I use the Outlook object model, I can see one attachment but it is

not
> a valid bmp file.
>
> How can I extract this image and save it to disk?
>
> Thanks.
>
> --
> Michael Tissington
> http://www.oaklodge.com
> http://www.tabtag.com
>
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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