?
Solved

Getting text from browser control

Posted on 2002-03-21
6
Medium Priority
?
139 Views
Last Modified: 2010-05-02


I need to grab all of the text, HTML and all, from my web browser control in VB.  Can someone point me in the rignt direction?

Thanks,
Bryan
0
Comment
Question by:bfeddish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 200 total points
ID: 6885623
Text1.Text = WebBrowser.Document.documentElement.outerhtml
0
 
LVL 1

Author Comment

by:bfeddish
ID: 6885685

That was it, thanks.

I'll add another 100 points if you answer this one:

I want to send this as an email. If I just say:

MAPIMessages1.MsgNoteText = WebBrowser1.Document.documentElement.outerhtml

The message body looks like this in Outlook when it is recieved:

<HTML><HEAD><TITLE></TITLE>
<STYLE type=text/css>
     <!--Set the link colors-->
     <!-- BODY

.... Etc.

How can I have to so when they open the email they get the formated HTML page instead of the HTML itself.

Thanks,
Bryan
0
 
LVL 1

Author Comment

by:bfeddish
ID: 6885752

That was it, thanks.

I'll add another 100 points if you answer this one:

I want to send this as an email. If I just say:

MAPIMessages1.MsgNoteText = WebBrowser1.Document.documentElement.outerhtml

The message body looks like this in Outlook when it is recieved:

<HTML><HEAD><TITLE></TITLE>
<STYLE type=text/css>
     <!--Set the link colors-->
     <!-- BODY

.... Etc.

How can I have to so when they open the email they get the formated HTML page instead of the HTML itself.

Thanks,
Bryan
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Expert Comment

by:bobbit31
ID: 6885925
i do this:

MAPIMessages1.Compose
MAPIMessages1.MsgNoteText = "<html><b>hello world</b></html>"
MAPIMessages1.RecipAddress = "test@aol.com"
MAPIMessages1.Send

and i get the formatted text in outlook
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 6886413
I hope bobbit answered the second part of your question...all it sounded like was that it was not treating the email as a formatted html message.  Since I dont use Outlook, I dont know if thats a setting you must set to tell it to treat a message as being html formatted.
0
 
LVL 1

Author Comment

by:bfeddish
ID: 6886440

It must be a setting as I just get the HTML code and not the formatted text in my email.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question