Save objects in inbox to hard drive (not emails) using VSTO ADX

Add-in Express™ Support Service
That's what is more important than anything else

Save objects in inbox to hard drive (not emails) using VSTO ADX
 
Son Nguyen




Posts: 55
Joined: 2007-03-28
If you drag a pdf or doc file into your inbox then it shows up as an item in your inbox. Is there a way to save that item to the local hard drive? I am not sure what object to cast that item to, since it obviously is not an Outlook.MailItem. I tried to cast it to Outlook.Attachment but that did not work.

Thanks,
Son
Posted 09 Apr, 2007 02:38:17 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Son, this is an Outlook attachment included in a new mail item.



P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 09 Apr, 2007 09:49:36 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Hi Sergey,

It isn't inside a mail item, it is just a file that is has been dragged from your desktop into the inbox and shows up in your inbox as a PDF or Word Document depending on what you dragged in...

So if you drag a word document into your outlook inbox you will see what I mean. How do I access that item?

Thanks!
Posted 09 Apr, 2007 13:43:43 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Sorry, if you drag a document or pdf into your inbox it generates an e-mail with that as an attachment.

Please drag the document or pdf into a sub folder under Inbox and you will see what I am referring to.

Thank you,
Son
Posted 09 Apr, 2007 13:49:22 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Son.

Please try to cast it to the Outlook._DocumentItem interface.
Posted 10 Apr, 2007 09:25:38 Top