|
|
|
date: Wed, 20 Aug 2008 17:21:28 +0200,
group: microsoft.public.dotnet.framework
back
RE: Displaying an ActiveX in a Web Form (or a WPF form)
Hello,
Welcome to Microsoft Newsgroup Support Service! My name is Marco Zhou. It's
my pleasure to work with you on this thread.
I've tried to reproduce this issue you described above, here is my test
code which could display the Flash player inside WPF application:
public WebBroweserHostDemo()
{
InitializeComponent();
WebBrowser webBrowser = new WebBrowser();
this.Content = webBrowser;
String html = @"<object classid='f5ff5d7d-a3aa-4ca4-9999-a42b6c33862d'>
<param name='movie'
value='http://www.youtube.com/v/KetwauxzfEc'/>
<param name='wmode' value='transparent' />
<embed
src='http://www.youtube.com/v/KetwauxzfEc'
type='application/x-shockwave-flash' wmode='transparent' />
</object>";
webBrowser.NavigateToString(html);
}
And the above code works well for me. WPF 3.5 SP1 has introduces a new
WebBrowser control which you could directly use inside WPF application
without using WindowsFormsHost. You could try it out to see if it fulfills
your requirements.
Have you tried to display the HTML you programmatically constructed inside
the Internet Explorer to see if IE could properly display it?
If IE cannot display it, you might not correctly construct the HTML, I
would greatly appreciate it if you could post the full HTML you
programmatically constructed in this thread, this would help us diagnose
this issue, and if possible, it's event better if you could send the
ActiveX control to us, so that we could try to reproduce this issue at our
box.
--------------------------------------------------
Best regards,
Macro Zhou (v-mazho@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Thu, 21 Aug 2008 04:26:39 GMT
author: (Marco Zhou [MSFT])
|
|