PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Mediaplayer and gotoselected mail problems

Reply

Mediaplayer and gotoselected mail problems

 
Thread Tools Rate Thread
Old 25-09-2003, 07:42 AM   #1
Edi
Guest
 
Posts: n/a
Default Mediaplayer and gotoselected mail problems


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
  Reply With Quote
Old 25-09-2003, 12:25 PM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Mediaplayer and gotoselected mail problems

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)
--
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


"Edi" <Edidi@hotmail.com> wrote in message news:1d7601c38330$3aaef800$a101280a@phx.gbl...
> 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

  Reply With Quote
Old 25-09-2003, 06:04 PM   #3
edi
Guest
 
Posts: n/a
Default Re: Mediaplayer and gotoselected mail problems

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)
>--
>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
>
>
>"Edi" <Edidi@hotmail.com> wrote in message

news:1d7601c38330$3aaef800$a101280a@phx.gbl...
>> 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

>.
>

  Reply With Quote
Old 25-09-2003, 07:56 PM   #4
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Mediaplayer and gotoselected mail problems

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
--
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


"edi" <edidi@hotmail.com> wrote in message news:01e201c38387$26bb7970$a401280a@phx.gbl...
>
> 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!
>
> >-----Original Message-----
> >
> >"Edi" <Edidi@hotmail.com> wrote in message

> news:1d7601c38330$3aaef800$a101280a@phx.gbl...
> >> 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

> >.
> >

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off