You must store the attachment as a file. Then you use the file's standard
application to display it by calling:

Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long

ShellExecute 0, "open", "c:\file.ext", "", "", 1

Best regards
Michael Bauer - MVP Outlook
Outlook Categories? The Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Wed, 6 Feb 2008 05:58:00 -0800 schrieb Asim Tozlu:

> Hi,
>
> i try to show a attachments from a e-mail in Outlook.
>
> I can use a TaskPane, but that not works in a E-Mail how Word or Excel.
>
> I have file's with my extension and i want write a code for my Application
> and show this in Outlook2007.
>
> I must use XP und can' t use a Previehandle from Vista.
>
> Thanks for idea.
>
> greetings from berlin
>
> Asim
06 Feb 2008How: Outlook2007 Preview.Asim Tozlu
06 Feb 2008|- Re: Outlook2007 Preview.Ken Slovak - [MVP - O...
07 Feb 2008\ Re: How: Outlook2007 Preview.Michael Bauer [MVP - ...
All times are in (US) Eastern Daylight Time (GMT -4:00)