<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I want to saveas silently ! it will not prompt to 
user for saveas please tell me how can I do this silently.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>please do replay !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>OLEObject IE</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>IE = CREATE OLEObject</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>If IE.ConnectToNewObject("InternetExplorer.Application") <> 0 
Then<BR> Messagebox("Error:","Please check, Excel is properly installed at 
this system")<BR> destroy IE<BR> Return <BR>End If</DIV>
<DIV> </DIV>
<DIV>IE.navigate("C:\Documents and 
Settings\dhruv\Desktop\temp123.htm")<BR>IE.visible = false</DIV>
<DIV> </DIV>
<DIV>IE.Document.execCommand("SaveAs", 1, "C:\Documents and 
Settings\dhruv\Desktop\foo.htm")</DIV>
<DIV> </DIV>
<DIV>IE.disconnectobject()<BR>destroy IE</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-------------------------------------------------------------------------------------------------</DIV>
<DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hello 
Sir,<BR><BR><BR><BR>I am trying to use the saveas function of WebBrowser control 
through OLE in<BR>my Powerbuilder application. It work fine.<BR><BR>integer 
OLECMDEXECOPT_DODEFAULT = 0<BR><BR>integer OLECMDEXECOPT_PROMPTUSER = 
1<BR><BR>integer OLECMDEXECOPT_DONTPROMPTUSER = 2<BR><BR>integer 
OLECMDEXECOPT_SHOWHELP = 3<BR><BR><BR><BR>integer OLECMDID_SAVEAS = 
4<BR><BR><BR><BR><BR><BR>ole_web.object.Silent = 
true<BR><BR><BR><BR>ole_web.object.ExecWB(OLECMDID_SAVEAS,OLECMDEXECOPT_DONTPROMPTUSER,'C:\Docum<BR>ents 
and Settings\Desktop\inputtemp.htm','C:\Documents 
and<BR>Settings\\Desktop\outputtemp.html')<BR><BR><BR><BR>here what I want is, 
that it will do all things Silently it will not prompt<BR>to use and I 
tried<BR><BR>and that I want to do with web browser,<BR><BR>and html file I am 
saving in html because what html file I am getting from<BR>powerbuilder is not 
perfect so I am converting it into perfect html so that<BR>I can be open in 
Excel with all colors.<BR><BR><BR><BR>URLDownloadToFile function work fine but 
it is not converting html file in<BR>proper format it will convert it in same 
format. Not use full for me.<BR><BR><BR><BR>So please tell me how I can use 
savaas function of WebBrowser silently<BR>giving input and output file 
name.<BR><BR><BR>URLDownloadToFile(0, "C:\Documents and 
Settings<BR>\Desktop\temp123.htm","C:\Documents and Settings\Desktop\ms.html", 
0, 0)<BR><BR><BR><BR>It works fine<BR><BR><BR><BR><BR><BR>Please find two htm 
file which I am getting from Powerbuilder and second I<BR>want to convert in to 
required format<BR><BR><BR><BR><BR><BR>Please Do 
replay</FONT><BR><BR><BR><BR><BR></FONT></DIV></FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>