read Word Documents from MAPI folder?

C

castle8000

Hi folks!

I am trying to access a Word document via vb 6.0 over the Outlook interface.
I need some information about the document (creation date, title, etc), so
it has to be a Word.Document which i am "talking to", but when i receive
items from a MAPI folder, i get "Item"'s...
Is there a way to get those information with vb6, vba or vbs?

Kind regards,

Fabian Werner
anyWARE ag (http://anyware.ag)
Germany
 
S

Sue Mosher [MVP-Outlook]

The Word document will exist as an attachment to the item. Extract it with
the Attachment.SaveAsFile method. You can then access it with Word methods.
 
C

castle8000

Wow, Sue Mosher herself... Ive read very much about you recently...

thanks, i will give it a try!

Best regards,
Fabian Werner
 
C

castle8000

What i forgot to say is that i do not wan to save it. Is there a way to...
"cast" it from attachment or from Item to Word.Document? Is there a way to
access things like title and other props of the document directly?

Thanks again,
Fabian Werner
 
S

Sue Mosher [MVP-Outlook]

No. Documents exist in items as a binary blob. They become accessible as
files only when they are saved.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



castle8000 said:
What i forgot to say is that i do not wan to save it. Is there a way to...
"cast" it from attachment or from Item to Word.Document? Is there a way to
access things like title and other props of the document directly?
 

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