Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2003

Tip: Looking for answers? Try searching our database.

Mediaplayer and gotoselected mail problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edi - 25 Sep 2003 07:42 GMT
Hi,

1.Im having a form which i use to view the e-mail  
attachments & having a problem viewing the m-player
(*.WMV, *.mpg etc.)

im using the WindowsMediaPlayer object from vb:

MediaPlayer.URL = 'atachment path goes in here'
MediaPlayer.Play

But nothing works!

2. how do i know which mail is on-select in the inbox when
i open a form (want's to go to that specific mail)

Thanks,
Edi
Sue Mosher [MVP] - 25 Sep 2003 12:25 GMT
1) How are you instantiating the MediaPlayer object? How are you getting the attachment path? Is the form published? Does other code on it work?

2) Application.ActiveExplorer.Selection(1)
Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

> Hi,
>
[quoted text clipped - 14 lines]
> Thanks,
> Edi
edi - 25 Sep 2003 18:04 GMT
Thanks for you answer

Im instantiating if from the tool box after
refernce "WindowMediaPlayer"
i know the path b/c im saving it to a certain path before
tring to add it to the object
The form is published & other code on it works!

adi

>-----Original Message-----
>1) How are you instantiating the MediaPlayer object? How are you getting the attachment path? Is the form
published? Does other code on it work?

>2) Application.ActiveExplorer.Selection(1)
>> Hi,
[quoted text clipped - 16 lines]
>> Edi
>.
Sue Mosher [MVP] - 25 Sep 2003 19:56 GMT
If you've published the form, that must mean it's an Outlook form, not a VBA form, right? I don't see anything in your code to indicate that you're instantiating an object variable to represent the control. If you're unfamiliar with Outlook form control syntax, see http://www.slipstick.com/dev/propsyntax.htm#unbound 
Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

> Im instantiating if from the tool box after
> refernce "WindowMediaPlayer"
[quoted text clipped - 26 lines]
> >> Edi
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.