473,545 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

designating an open browser window to read data


I've used the following code to open a browser window and read the data
to a file. I know there is another way using a query, but that doesn't
work for this application.

What I'd like to be able to do is select a this open browser after
opening other explorer windows.

This would be similar to the command:

Workbooks("obje cts.xls").Activ ate

where I have a file named objects.xls open in excel

An alternative would be to select a browser window after I've opened it
manually.

Other ideas I can work with.

How can I read the caption from a browser after activating it?

Is there such a thing like currentwindow.c aption?

Thanks for your help. Please do not email me as I never look at that
one.
_______________ _______________ _______________ ____

Sub openbrowswer_sa ve_to_list2()

Set objie = CreateObject("I nternetExplorer .Application")
objie.Visible = True
objie.Navigate ("http://www.yahoo.com/")

Do While objie.Busy
Loop

Do While objie.Document. readyState <> "complete"
Loop

Set fs = CreateObject("S cripting.FileSy stemObject")
Set stream = fs.CreateTextFi le("list2.txt" )
stream.Write objie.Document. body.innerhtml
stream.Close

End Sub

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
1 1778
Cor
Hi Visual.Basic.Ap plication man,

Did you maybe post to the wrong newsgroup, this is VB.net languages?
Not VBA.

Cor

I've used the following code to open a browser window and read the data
to a file. I know there is another way using a query, but that doesn't
work for this application.

What I'd like to be able to do is select a this open browser after
opening other explorer windows.

This would be similar to the command:

Workbooks("obje cts.xls").Activ ate

where I have a file named objects.xls open in excel

An alternative would be to select a browser window after I've opened it
manually.

Other ideas I can work with.

How can I read the caption from a browser after activating it?

Is there such a thing like currentwindow.c aption?

Thanks for your help. Please do not email me as I never look at that
one.
_______________ _______________ _______________ ____

Sub openbrowswer_sa ve_to_list2()

Set objie = CreateObject("I nternetExplorer .Application")
objie.Visible = True
objie.Navigate ("http://www.yahoo.com/")

Do While objie.Busy
Loop

Do While objie.Document. readyState <> "complete"
Loop

Set fs = CreateObject("S cripting.FileSy stemObject")
Set stream = fs.CreateTextFi le("list2.txt" )
stream.Write objie.Document. body.innerhtml
stream.Close

End Sub

Nov 20 '05 #2

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

Similar topics

6
12146
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page where I can set the window height, statusbar=no, etc? Thanks, -Luke
4
2865
by: jadiyo | last post by:
Hi, I've read many questions about how to automatically open a new window from a page using the JavaScript onLoad command. Unfortunately, due to the web application framework being used (WebLogic Portal 7), I can not use it as it is already being used and is only called once by the browser(so I believe). What I am essentially trying to...
29
4963
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
3
3125
by: Leonard | last post by:
I have a button on my web app, that opens a help html page. I use this code: HttpContext.Current.Response.Write("<script>") HttpContext.Current.Response.Write("window.open('" & sUrl & "','_new')") HttpContext.Current.Response.Write("</script>") This works ok, the html page opens in a new browser window, but when I close the help, click on...
3
3565
by: ODB | last post by:
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect to a new page in the same window and then hit back, i have some olde invalid data in my window. and i realy need to open af new browser ? Thanks ODB
6
10019
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link,...
4
8144
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page via window.open 3. myFunction() submits the main page's form via document.form.submit() 5. User closes popup window and clicks browser's Back...
7
3653
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses pageA.html 2. User clicks on menu link to open popup.html 3. pageA.html checks if popup.html is already open. It is not, open
9
2799
by: cendrizzi | last post by:
Hi all, I've read some stuff on this but can't seem to come up with a solution that works right. I have a semi-mature (yet very large and robust) internal web application that currently only works with one window open at a time. Maybe I'm abusing the use of $_SESSION but I have data entry processes split up in several steps (which is...
0
7475
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3465
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
720
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.