Solved

Getting text from browser control

Posted on 2002-03-21
6
136 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 50 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

739 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