Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't eliminat SaveAs dialog when automating IE

Status
Not open for further replies.

darrellblackhawk

Programmer
Aug 30, 2002
846
US
I'm automating internet explorer in both VB and Visual FoxPro.

I can't seem to get rid of the file saveas dialog no matter what I do.

Any ideas?

Thanks

Example.

Private Sub Command1_Click()
Stop
Dim o As Object
Set o = CreateObject("internetexplorer.application")
o.Visible = True
o.navigate ("
' Both these commands should suppress the dialog, but don't
done = o.document.execCommand("SaveAs", 2, "filename.htm")
done = o.document.execCommand("SaveAs", false, "filename.htm")

o.quit

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top