How to fill in SaveAs Dialog box and press OK?

cgchris99

Newcomer
Joined
Sep 29, 2003
Messages
14
I am using the axwebbrowser. I have automated the navigation of a website.

The program presses one of the buttons on the website and "Open/Save/Cancel" Dialog appears.


How can I programatically press the Save and then fill in the name and click the save button
 
Is this to automatically download a file? I wouldn't use the browser control if you can help it. It's probably best to use something that directly downloads the file given the actual address (the full URL to the file, be it HTTP or an FTP address).

I would discourage trying to override the default prompting of a Save dialog as it's there not to impede you, but as a security so that you don't download something you don't want.

-Nerseus
 
I don't know what else to do. If I could get to the xml data inside the AXwebbrowser, I wouldn't have to try this.

But so far I am just spinning my wheels here.
 
Are you referring to this thread? Did you ever try the other suggestion by vsnt?

Maybe you could show us a sample project? Is the website you're linking to public, so that we might try it?

If you use the HTTPRequest object, as suggested by vsnt, you can read the text coming from the website directly. If it's truly just XML, you can probably get it into a string easily. I'm wondering if it's XML or just HTML formatted to look like XML.

Have you tried other properties of the web control, like an InnerText (if that exists)?

-Ner
 
Back
Top