473,805 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help using the WebBrowser control as a generic ActiveX plug-in.

If I embed an WebBrowser control on a WinForm I have the ability to
load any ActiveX containable object into that control using this
syntax:

webBrowser1.Url = new Uri(@"c:\myfile .doc");

Using this approach, I can load a MS Word document into the browser
and access the Word document object model like this:

object obj = webBrowser1.Doc ument;
Word.Document odoc = (Word.Document) obj;

Using this same technique I would like to know if it's possible to
access the object model for Flash SWF movies.

May 5 '07 #1
1 2257
It should be, but you will need to have an HTML page to embed it in, and
then you will have to navigate the page structure to get the reference to
the flash object.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"JDeats" <Je**********@g mail.comwrote in message
news:11******** *************@u 30g2000hsc.goog legroups.com...
If I embed an WebBrowser control on a WinForm I have the ability to
load any ActiveX containable object into that control using this
syntax:

webBrowser1.Url = new Uri(@"c:\myfile .doc");

Using this approach, I can load a MS Word document into the browser
and access the Word document object model like this:

object obj = webBrowser1.Doc ument;
Word.Document odoc = (Word.Document) obj;

Using this same technique I would like to know if it's possible to
access the object model for Flash SWF movies.

May 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10279
by: ThisIsAMess | last post by:
All! I posted a query a while ago as to how one can 'draw' lines on the webbrowser control (as on an 'imported' chart). I'm re-asking that query, plus another. The new one is - How can one Center a portion of, say, an imported chart/document within the webbrowser control? Otherwords, the bottom-right portion of the chart/document is what I want to be centered when I import the chart/document. Thanks...
2
1227
by: Ed | last post by:
Hi, Is there any control (free) that has same functionality as IE to display the XML document without having to create a physical file? if using Webbrowser control (ActiveX control) I have to create a xml file and then use .Navigate(url) ... Thanks!
1
1809
by: VB Programmer | last post by:
I am going to use an ActiveX control on my webform. 1. How can I set it up so that if a user views the web page and doesn't have the ActiveX control it immediately/automatically downloads it from a predefined location? 2. How do I handle registering it on their machine (with 'regsvr32'?), or do I even need to do this? (This ActiveX control is an unmanaged, non-server control.)
2
3154
by: programmer2004 | last post by:
Hi I have used WebBrowser control and i want to save the entire webpage including pictures etc. i have called ExecWB method of WebBrowser control with OLECMDEXECOPT_DONTPROMPTUSER flag, but it opens save as dialog box. I want automatically save the webpage without using save as dialog box. "Is there any way of save as webpage?" regards
2
11288
by: reidarT | last post by:
I use a webbrowser control to open a web page. I get a vertical scrollbar. Is it possible to get rid of it? reidarT
1
1469
by: zoneal | last post by:
I am trying to make an ActiveX control using VB.Net, my control has a Microsoft WebBrowser control. When i am trying to build the assembly i am getting an error message "Unable to emit the assembly: the 'AxSHDocVw.shdocvw.dll' does not have a strong name", what to do?
0
3347
by: Abraham Echenique Carta | last post by:
Hola. Tengo una ventana con un objeto WebBrowser (.Net 2.0)... resulta que cuando estoy navegando con él y hay un link con target='_blank', me abre una ventana de Internet Explorer y necesito que me abra una instancia del form que contiene el WebBrowser y navegue el link. Hasta el momento sólo he logrado bloquear la ventana con el evento NewWindow (creo que se llama así) del WebBrowser, dándole e.Cancel = True... pero si hago eso...
8
3426
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : *************************************************
1
1395
by: Jason Tost | last post by:
Good afternoon, I was wondering if there is a way you can determine what the security requirements are of a control. I have an application that throws a security exception if there is a WebBrowser control on my main form. The exception simply states "Request Failed". If I remove the WebBrowser control from the form, it works fine. The application is a full trust application, and I have set the URL property of the WebBrowser to...
0
1912
by: Sin Jeong-hun | last post by:
I've found that if a MessageBox (called by alert/confirm from Javascript) or a web page modeless dialog is popped up, I cannot call Navigate of the WebBrowser control. If I do, a COM exception occures. How can I disable javascript MessageBoxes or modeless dialogs? I disabled normal popup windows by adding e.Cancel=true at the browsers newwindow event. But I couldn't disable modeless dialog or javascript MessageBox. I tried to remove some...
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.