Attachment with in Outlook

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

Attachment with in Outlook
Have all Attachment with in Outlook open up with my own viewer 
Donald Pope




Posts: 11
Joined: 2006-01-26
With the help of add-in-express is it possible to have all attachment with in outlook to be open up with my own viewer software that is call via my COM add-in. So that it can check one or two think to do with the attachment?

Thanks

Donald Pope
Posted 29 Mar, 2006 17:32:58 Top
Sergey Grischenko


Add-in Express team


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

I think it is possible. You just need to add a button to an Inspector or Explorer command bar and run your viewer via the button. You can use the Attachments collection of the Outlook Mail item to access all attachments.
Posted 30 Mar, 2006 14:08:42 Top
Donald Pope




Posts: 11
Joined: 2006-01-26
Right I know I could do it that way, but is there a way of doing it via there the attachments are display in the Inspector or the Explorer?

I have see this been done by a different program but i don't know how they do it?

I think it is via a Outlook COM add-in?

thanks

Donald Pope
Posted 04 Apr, 2006 05:16:40 Top
Sergey Grischenko


Add-in Express team


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

I am afraid I don't quite understand what you mean.
ADX can add command bars/controls to Outlook inspectors and exprlorers. It doesn't support any other windows created by third party applications.
Posted 04 Apr, 2006 10:51:58 Top
Donald Pope




Posts: 11
Joined: 2006-01-26
Hi Sergey,

By the third party applications, I was just telling you, that I had see it, not to use it, so that I know it is possible to do.

basic in the image below is where all the attachment are in outlook I basic just want to double click on that and do some check and open with my own viewer software which is in my VB.net project

User added an image

I know I could have Attachment_read handle on all the items in outlook that are open but that doesn't stop the attachment from being read because there is no cancel in it?

Any help would be great?

Thanks

Donald
Posted 05 Apr, 2006 17:23:48 Top
Sergey Grischenko


Add-in Express team


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

ADX doesn't allow you to override the standard reader for attachments.
However you can register you own reader in the system registry to change the default behaviour of Outlook. You car read about it in MSDN (see the Shell Programmer's Guide -> Shell Basics).
Posted 06 Apr, 2006 07:41:21 Top
Donald Pope




Posts: 11
Joined: 2006-01-26
I been looking at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics.asp and can't find out where i need to be looking could you point me please to the corrent place?

Thanks

Donald Pope
Posted 06 Apr, 2006 08:26:41 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Posted 06 Apr, 2006 16:29:19 Top
Donald Pope




Posts: 11
Joined: 2006-01-26
Thanks for your help Sergey.

I did this using the following http://www.codeproject.com/csharp/dateparser.asp articles to made a Hooking into the Shell. I change it a bit to get it to work with outlook.

Is this the right way of doing this by what you was talking about above?

Thanks again.

Donald
Posted 11 Apr, 2006 17:27:46 Top
Sergey Grischenko


Add-in Express team


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

Yes, you can try this example to implement your idea.
Posted 12 Apr, 2006 06:28:05 Top