Solved

Screen Scrapping from Visual Basic

Posted on 2003-11-24
7
307 Views
Last Modified: 2013-11-25
Hi ,

I am making an application to get the data scrap from visual basic to HTML page and vice versa.
Pls. help me out. with some code tips how to do that .
0
Comment
Question by:Meenakshibansal
[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
7 Comments
 
LVL 9

Expert Comment

by:Dang123
ID: 9819224
Meenakshibansal,
    Can you expand this question a little. What exactly do you want to do? What type of data are you planning to work with? (Large blocks of text, lists of numbers, etc?)
Dang123


0
 

Author Comment

by:Meenakshibansal
ID: 9822344
Hi,
In my application i have got 2 tetboxes and there is commandbutton on Visual basic form .when u click on that button the text u have entered in that 2 textboxes should be transfered to HTML page having 2 textboxes . and same with HTML page.the
0
 
LVL 9

Accepted Solution

by:
Dang123 earned 50 total points
ID: 9824363
Meenakshibansal,
    OK, is this what you are looking for?
Dang123

-------------------------------------------------
Test.html
-------------------------------------------------
<html>
<head>
    <title>Some Test Page</title>
</head>
<body>
    <p>This is box 1</p>
    <textarea NAME="Box1" ROWS="3" COLS="80" wrap="off">
    </textarea>
    <p>This is box 2</p>
    <textarea NAME="Box2" ROWS="3" COLS="80" wrap="off">
    </textarea>
</body>
</html>

-------------------------------------------------
VB App
-------------------------------------------------
In a new project add two text boxes and two command buttons. Paste this code into place on the form (correct the paty to Test.html)
-------------------------------------------------

Option Explicit

Dim oIE As Object

Private Sub Command1_Click()
    Set oIE = CreateObject("InternetExplorer.Application")
    oIE.Visible = True
    oIE.Navigate ("C:\y\Test.html")
    While oIE.Busy: Wend ' wait for page to load...
    oIE.Document.All("box1").Value = Text1.Text
    oIE.Document.All("box2").Value = Text2.Text
End Sub

Private Sub Command2_Click()
    Text1.Text = oIE.Document.All("box1").Value
    Text2.Text = oIE.Document.All("box2").Value
End Sub
0
 
LVL 9

Expert Comment

by:Dang123
ID: 10164365

    Did my code sample do what you needed?
0

Featured Post

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!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

726 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