How to fill in SaveAs Dialog box and press OK?

cgchris99

Member
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 wouldnt use the browser control if you can help it. Its 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 its there not to impede you, but as a security so that you dont download something you dont want.

-Nerseus
 
I dont know what else to do. If I could get to the xml data inside the AXwebbrowser, I wouldnt 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 youre 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 its truly just XML, you can probably get it into a string easily. Im wondering if its 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