473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I load HTML into an instance of SHDocVw.InternetExplorer

I am so close, yet oh so far! Here's the problem: I want to load a string
variable that contains HTML into an instance of SHDocVw.InternetExplorer.
Here's what I have so far:

Function ShowMonTaxes(ByVal bTax As Boolean) As Integer
Dim oIE As New SHDocVw.InternetExplorer

' set Internet Explorer properties...
oIE.Left = 225
oIE.Top = 75
oIE.Width = 680 ' width of dialog...
oIE.Height = 600
oIE.MenuBar = True
oIE.ToolBar = 1
oIE.StatusBar = False
oIE.AddressBar = False
oIE.Resizable = True
oIE.Navigate("about:blank")

While oIE.Busy : End While ' wait for page to load...

' load html into the oIE page ---
' **** what do I put here???*****

' with IE/html loaded, define assorted objects...
oIE.Visible = True

' return result
ShowMonTaxes = 0

End Function

I have a string (i.e. strHTML) that is already constructed that contains the
valid HTML results. What I'm attempting to do here is to display those
results. I am using the SHDocVw.InternetExplorer because webbrowser control
doesn't allow me to use a ToolBar (I need this so that I can easily print
the page if I so desire).

Any help would be appreciated.

Thanks in advance.

Dick
Jun 13 '06 #1
4 3378
Dick,

What is this for crazy statement from you.
I am using the SHDocVw.InternetExplorer because webbrowser control doesn't
allow me to use a ToolBar (I need this so that I can easily print the page
if I so desire).

There is more than only a toolbar in this sample.

http://www.vb-tips.com/default.aspx?...d-da738cdc7c2c

I hope this helps,

Cor
Jun 14 '06 #2
Cor,

Thanks for your input. However, I think you misunderstood my question. I'm
aware that I can add a ToolBar control to a form (along with a WebBrowser
control) but that requires me to program every button that I place on the
ToolBar. By using the SHDocVw.InternetExplorer approach, it uses the
standard IE toolbar and I don't have to program anything (i.e. it's much
easier).

My problem stems from my ignorance on how to place HTML text in the window
controlled by SHDocVw.InternetExplorer .

Thanks again for your help and insight.

Dick

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Dick,

What is this for crazy statement from you.
I am using the SHDocVw.InternetExplorer because webbrowser control
doesn't allow me to use a ToolBar (I need this so that I can easily print
the page if I so desire).

There is more than only a toolbar in this sample.

http://www.vb-tips.com/default.aspx?...d-da738cdc7c2c

I hope this helps,

Cor

Jun 14 '06 #3
Dick,

Using SHDocVw.InternetExplorer has never been easy. An extra problem is that
the documentation on MSDN is the same about the Axwebbrowser and
ShDocVw.Internetexplorer. While for the last one most events events don't
work as in AxWebbrowser.

By the way it is a long time I saw it the last time and now writting this,
did you already try the Axwebrowser and than with the instanced format of
that axweb.InternetExplorer?

Cor
"Dick Sutton" <rs*******@comcast.net> schreef in bericht
news:Hp******************************@comcast.com. ..
Cor,

Thanks for your input. However, I think you misunderstood my question.
I'm aware that I can add a ToolBar control to a form (along with a
WebBrowser control) but that requires me to program every button that I
place on the ToolBar. By using the SHDocVw.InternetExplorer approach, it
uses the standard IE toolbar and I don't have to program anything (i.e.
it's much easier).

My problem stems from my ignorance on how to place HTML text in the window
controlled by SHDocVw.InternetExplorer .

Thanks again for your help and insight.

Dick

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Dick,

What is this for crazy statement from you.
I am using the SHDocVw.InternetExplorer because webbrowser control
doesn't allow me to use a ToolBar (I need this so that I can easily
print the page if I so desire).

There is more than only a toolbar in this sample.

http://www.vb-tips.com/default.aspx?...d-da738cdc7c2c

I hope this helps,

Cor


Jun 15 '06 #4
Thanks, Cor,

I will give your suggestion (Axwebrowser) a try. I'll report back on my
progress.

Thanks again for the input.

Dick

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
Dick,

Using SHDocVw.InternetExplorer has never been easy. An extra problem is
that the documentation on MSDN is the same about the Axwebbrowser and
ShDocVw.Internetexplorer. While for the last one most events events don't
work as in AxWebbrowser.

By the way it is a long time I saw it the last time and now writting this,
did you already try the Axwebrowser and than with the instanced format of
that axweb.InternetExplorer?

Cor
"Dick Sutton" <rs*******@comcast.net> schreef in bericht
news:Hp******************************@comcast.com. ..
Cor,

Thanks for your input. However, I think you misunderstood my question.
I'm aware that I can add a ToolBar control to a form (along with a
WebBrowser control) but that requires me to program every button that I
place on the ToolBar. By using the SHDocVw.InternetExplorer approach, it
uses the standard IE toolbar and I don't have to program anything (i.e.
it's much easier).

My problem stems from my ignorance on how to place HTML text in the
window controlled by SHDocVw.InternetExplorer .

Thanks again for your help and insight.

Dick

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Dick,

What is this for crazy statement from you.

I am using the SHDocVw.InternetExplorer because webbrowser control
doesn't allow me to use a ToolBar (I need this so that I can easily
print the page if I so desire).

There is more than only a toolbar in this sample.

http://www.vb-tips.com/default.aspx?...d-da738cdc7c2c

I hope this helps,

Cor



Jun 15 '06 #5

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

Similar topics

3
by: Ian Macro | last post by:
I have written a VB .Net Console application which uses SHDocVw.InternetExplorer(). This works perfectly when run in the foreground but I need to schedule this as a background job. When ever I...
3
by: Tom | last post by:
Hi, I wrote the following code in a c# winform. InternetExplorer ie = new InternetExplorer(); ie.Navigate(url, ref o, ref o, ref o, ref o); The url can be passed to the IE. However, how...
4
by: Brett | last post by:
Say I open an IE window and call the Navigate() method. A web page opens. I use a delegate to capture the DocumentComplete and NavigateComplete2 events. However, they fire slightly before the...
10
by: Jimbo | last post by:
Hey I would like to do the following from a windows application: 1. Open a browser and navigate to a URL. 2. When i am at the correct URL in my browser window, i want to fill in data in the...
8
by: McBeth | last post by:
Hi! I'm trying to call external HTML web page requiring several POST-ed parameters from C# Web form. Parameters should be set by Web form. Is it possible ? How can I do it ? Thanks in advance ...
2
by: Ryan Clark | last post by:
I'm trying to finish up an ASP.Net application but one requirement has got me stumped. I have a databound listbox that contains my information. The requirement is to open up another instance of...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
0
by: devanoy | last post by:
I am trying to print an existing HTML File to PDF in VB.NET programmatically. I have only had success with setting the default printer to Acrobat Distiller and using this code. Dim MSHTML As...
3
by: markpittsnh | last post by:
I am using C# to load a url. My URL is an XML document which contains the processing instruction<?xml-Stylesheet type="text/xsl" href=".\CS_Xml_Output.xsl"?> During development, I was using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.