AxInterop.SHDocVw.dll and Interop.SHDocVw.dll
Hi,
I am coding a system to fill out some informations about taxes and somethink similar.
So the program reads the data out of a file, fills out a web page with the data and submits the data.
Now my question: is it possible, that I don't need to include the two dll-files (
AxInterop.SHDocVw.dll and Interop.SHDocVw.dll
) or do I have to give the two dll-files with my program? My boss wants me to reduces the count of files of the program to the minimum and he doesn't want to send dlls with the programm.
Or are the two files in a sub-directory in the windows-directory (or in a .cab)?
Thanks a lot!
Lukas
Hi,
If you working on .NET Framework v2.0, then you do not need to use the older COM based ActiveX Control. There is a new WebBrowser Control built in Managed Code for .NET v2.0
If you use the .NET v2.0 based WebBrowser control, which will be present in your toolbox, then you do not need those Interop assemblies.
Regards,
Vikram
I am having a problem with the old COM AxInterop.SHDocVw.dll and Interop.SHDocVw.dll, as well as the SHDocvw.dll when i try installing the Virtual Earth 3D control which is supposed to recognize that the 3D control has already been installed, but it keeps on trying to install it in my own customized MiniBrowser in a VB.Net application. I got everything working up until this point using the 1.1 framework, even created a tabbed browser but it still keeps trying to install the 3D control. I realize that this is not the Virtual Earth realm but i don't know if those VE guys have ever tried creating their own browser. please help. thanks.
Hi,
Can you further explain which control is in the .Net framework 2.0 and how is theexact name of it or how can I see thats the right one.
I have a similar problem, but by me it seems that a version of the application that was built on Win Xp runs on my machine a Win 2000 Pro and if I try to do the same, by building the application on my machine it brakes down at a point where I look for the opened IE windows and select one that I want / need and after that return this object, after a cast is done to. This cast looks like this:
-
CODE
-
private
mshtml.HTMLDocument GetIEHtmlDocument(long hwnd) {
SHDocVw.ShellWindows SWs =
new SHDocVw.ShellWindows(); mshtml.HTMLDocument htmldoc =
new mshtml.HTMLDocumentClass(); foreach( SHDocVw.InternetExplorer IE in SWs) {
try {
.......
htmldoc = (mshtml.HTMLDocument)IE.Document; // the last object in this case ... the code is simple here but the problem is at this cast
}
catch(Exception) {
}
}
return htmldoc; }
-
This cast is not done clean each time (mshtml.HTMLDocument)IE.Document.
On a version of the application compiled on my machine this ends with a htmldoc that does not contain the frames element - frames contains a exception:
System.InvalidCastException ...
I cant explain this, only through another version of the Interop.SHDocVw.dll or better said other assembly files.
My question were, what can / should I do in this case ?
Plese if you answer send me also a mail, to mozylon@mail.yahoo.com
Hi,
Can you further explain which control is in the .Net framework 2.0 and how is theexact name of it or how can I see thats the right one.
I have a similar problem, but by me it seems that a version of the application that was built on Win Xp runs on my machine a Win 2000 Pro and if I try to do the same, by building the application on my machine it brakes down at a point where I look for the opened IE windows and select one that I want / need and after that return this object, after a cast is done to. This cast looks like this:
-
CODE
-
private
mshtml.HTMLDocument GetIEHtmlDocument(long hwnd) {
SHDocVw.ShellWindows SWs =
new SHDocVw.ShellWindows(); mshtml.HTMLDocument htmldoc =
new mshtml.HTMLDocumentClass(); foreach( SHDocVw.InternetExplorer IE in SWs) {
try {
.......
htmldoc = (mshtml.HTMLDocument)IE.Document; // the last object in this case ... the code is simple here but the problem is at this cast
}
catch(Exception) {
}
}
return htmldoc; }
-
This cast is not done clean each time (mshtml.HTMLDocument)IE.Document.
On a version of the application compiled on my machine this ends with a htmldoc that does not contain the frames element - frames contains a exception:
System.InvalidCastException ...
I cant explain this, only through another version of the Interop.SHDocVw.dll or better said other assembly files.
My question were, what can / should I do in this case ?
Please if you answer send me also a mail, to mozylon@mail.yahoo.com
Hi
I think this .dll can be remove from the at the deploying time by embading this with another dll.
That mean by using aximp.exe . I think we can generate that AxInterop.ShDocVw.cs class source and then can be included in that in the app source code.
I am trying to do that but yet I couldn't.So if u success please let me also know
bi
madushan Thilina
madushant@gmail.com