![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello, I've created an Outlook add-in with a Form region that contains
Windows Media player control, all works fine when running it, but my question is how do I have the media control load the audio file that is attached to the email when I open the email. These message have their own message class with the form is associated with, and they always contain one wave file. Thanks Frank |
Ads |
#2
|
|||
|
|||
![]()
Get the Attachments collection of the item in question and iterate each
Attachment member object until you find the wave file. You can check the Attachment.FileName property to see if the wave file extension is there. Once you've found the attachment use the Attachment.SaveAsFile method to save it to the file system, perhaps to a temp file, then call the player to work with that file. After you are finished you may want to delete the temporary file. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "news.microsoft.com" wrote in message ... Hello, I've created an Outlook add-in with a Form region that contains Windows Media player control, all works fine when running it, but my question is how do I have the media control load the audio file that is attached to the email when I open the email. These message have their own message class with the form is associated with, and they always contain one wave file. Thanks Frank |
#3
|
|||
|
|||
![]()
Thank you that did the trick... I was hoping that there would be some
"built-in" function that would allow me to access the file directly... but the suggestion worked just as good. Thank you Frank "Ken Slovak - [MVP - Outlook]" wrote in message ... Get the Attachments collection of the item in question and iterate each Attachment member object until you find the wave file. You can check the Attachment.FileName property to see if the wave file extension is there. Once you've found the attachment use the Attachment.SaveAsFile method to save it to the file system, perhaps to a temp file, then call the player to work with that file. After you are finished you may want to delete the temporary file. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "news.microsoft.com" wrote in message ... Hello, I've created an Outlook add-in with a Form region that contains Windows Media player control, all works fine when running it, but my question is how do I have the media control load the audio file that is attached to the email when I open the email. These message have their own message class with the form is associated with, and they always contain one wave file. Thanks Frank |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import Wiindow Media File into Email | Cindy | Outlook and VBA | 1 | April 18th 08 06:13 PM |
Problem with Axis Media Control | il barbi | Outlook Express | 18 | January 29th 08 12:27 AM |
how to load the the xml file in vc++ 2005 | lencastro | Add-ins for Outlook | 0 | January 19th 07 10:23 AM |
Nero showtime Media player help | ralphu chowdry | Outlook Express | 2 | December 7th 06 09:34 PM |
WMA player ...version 11 | barney | Outlook Express | 1 | November 24th 06 11:39 PM |