Re: Want to Eary Bind Instead of Late Bind Object an IE Object

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Cor,

Thanks for the insight. I'll give it a try...

***

"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:OjRd%23RnfGHA.3364@xxxxxxxxxxxxxxxxxxxxxxx
***,

In addition to Michel because you have everything almost ready probably is
this easier (not tested)

Dim oIE As New Webbrowser

' instantiate Internet Explorer
'oIE = CreateObject("InternetExplorer.Application")

And than you have to use probably some other names of properties.

oIE.left = 225
oIE.top = 75
oIE.width = 680 ' width of dialog...
oIE.height = 600
oIE.menubar = True
oIE.toolbar = True
oIE.statusbar = False
oIE.addressbar = False
oIE.Resizable = True
oIE.navigate("about:blank")

etc...

As general hint try to avoid forever the raw "object" in your program.

If you want to use really Internet Explorer than you have to set a
reference to SHDOCVW (Microsoft Internet Controls) and than tell to use
that as

dim oIE as new ShDocVW.Interenetexplorer

I hope this helps,

Cor




.


Quantcast