Groups | Blog | Home
all groups > asp.net building controls > june 2004 >

asp.net building controls : Internet Explorer Window Form User Control - Embed - Urgent


ilan NO[at]SPAM time4learning.com
6/4/2004 3:36:23 AM
Hi,

This is URGENT, THANKS!

Without getting into the "why", here's what I'd like to do, followed
by where I am:

1. I would like to embed an Internet Explorer user control within
Internet Explorer. I do not want to use IFRAME to simply call up
another page.

Where I am:

1. I've "scoured" the net and my books on how to approach this problem
and have been able to develop and test a generic Window Form with a
treeview control in it.

- The dll is created and copied to the root directory of the
application.
- The following OBJECT code is used:

<OBJECT id="MyWinControl1" height="200" width="200"
classid="http:WinControls.dll#WinControls.WinTreeview" VIEWASTEXT>
</OBJECT>

- The control appears to load into the page and operate correctly.

2. Following the success of (1) I create a new Window Form User
Control that embeds the "Internet Web Browser" control in it.
Further, I test this contorl in a Windows Application setting and it
works.

- The dll is created and copied to the root directory of the
application (same as above)
- The following OBJECT code is used:
<OBJECT id="MyWinControl3" height="200" width="200"
classid="http:IEControl.dll#IEControl.myie" VIEWASTEXT>
</OBJECT>

- The control DOES NOT load into the page (I get a blank image box)
- I suspect this has to do with the control's ability to access the
following two dlls, created as part of the new control:
Interop.SHDocVw.dll and AxInterop.SHDocVw.dll. I've placed these 2
dlls in the root directory as well, but to no avail.

Does ANYONE have any idea what the issue may be? Also, if you have an
example of an embedded web browser control in a page that would be
Natty Gur
6/5/2004 1:29:54 AM
Hi,

try to run gacutil /ldl. it should list all assemblies download by
explorer. look for those two assemblies that need to be download.
you can also try to use any dependency walker tool so find all
assemblies / dlls that should be available in order to successfully run
assembly from client machine.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377


*** Sent via Devdex http://www.devdex.com ***
ilan NO[at]SPAM time4learning.com
6/8/2004 8:05:08 AM
[quoted text, click to view]

Natty,

Thanks for the advice, due to some other constraints having to do with
Active X security and issues with the content we were trying to embed
in the browser control, we have decided to use a popup window instead
of the Active X control.

I very much appreciate your timely response to this question.

AddThis Social Bookmark Button