469,270 Members | 1,093 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Get values from open ASP page into VB6 app

I cannot find how to extract information from the active asp page into a VB6 windows form. First, how do I refer to the active IE document? Then get selected data items from labels on the form, and then get them into a VB6 windows form for input? Thank you for your help
Nov 24 '07 #1
6 2383
jhardman
3,406 Expert 2GB
I don't understand what you mean.

Do you have some VB window that opens an HTML form written with ASP, then you need the data submitted with the form to go back to the VB window? Please explain what you are trying to do.

Jared
Nov 28 '07 #2
I don't understand what you mean.

Do you have some VB window that opens an HTML form written with ASP, then you need the data submitted with the form to go back to the VB window? Please explain what you are trying to do.

Jared
jhardman,
The open ASP document is from my website. The form contains textboxes, labels, etc. The Windows form is totally separate, but it needs to get some of the information from the web form. Otherwise, the user must type the values into the windows form, reading them from the web form. I want the windows app to retrieve the information directly from the web form so that the user does not need to interact.
Thanks,

Bobby
Dec 3 '07 #3
urstop
12
You can use the browser control object of VB 6.0 and open the ASP page using the control. It is equivalent to your IE browser and so you can use all the DHTML methods of IE from your VB code.

Regards,
UrStop

jhardman,
The open ASP document is from my website. The form contains textboxes, labels, etc. The Windows form is totally separate, but it needs to get some of the information from the web form. Otherwise, the user must type the values into the windows form, reading them from the web form. I want the windows app to retrieve the information directly from the web form so that the user does not need to interact.
Thanks,

Bobby
Dec 3 '07 #4
You can use the browser control object of VB 6.0 and open the ASP page using the control. It is equivalent to your IE browser and so you can use all the DHTML methods of IE from your VB code.

Regards,
UrStop
Jhardman,
Yes, I know what to do once I identify the page. But how do you refer to the currently open document in the browser? All the code examples connect to a page with the browser control. But, I want to connect to the page that is already open and displayed in the browser.

And, thank you for your prompt response.
Dec 3 '07 #5
urstop
12
I think there is a way using the windows APIs to enumerate thru all the open windows on your machine, and then identify if the window is a browser or not a browser, and if it is a browser get the refrence to its document object and then use the DHTML methods on the document and read the values from the required fields.

Regards
UrStop
Dec 4 '07 #6
I think there is a way using the windows APIs to enumerate thru all the open windows on your machine, and then identify if the window is a browser or not a browser, and if it is a browser get the refrence to its document object and then use the DHTML methods on the document and read the values from the required fields.

Regards
UrStop
urstop,
My apoligies for not addressing you properly on our last exchange. Your suggestion for using Windows API is beyond my present skill set. Can you cite a reference that I may consult, and understand?
And, thank you for your help. I shall continue to look in the direction of the API calls, too.

Bobby
Dec 5 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by bryanjhogan | last post: by
3 posts views Thread by Aaron | last post: by
1 post views Thread by Garry Jones | last post: by
2 posts views Thread by xzzy | last post: by
1 post views Thread by colleen1980 | last post: by
6 posts views Thread by vncntj | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.