I want to saveas silently ! it will not prompt to user for saveas please tell me how can I do this silently.
please do replay !
OLEObject IE
IE = CREATE OLEObject
If IE.ConnectToNew Object("Interne tExplorer.Appli cation") <> 0 Then
Messagebox("Err or:","Please check, Excel is properly installed at this system")
destroy IE
Return
End If
IE.navigate("C: \Documents and Settings\dhruv\ Desktop\temp123 .htm")
IE.visible = false
IE.Document.exe cCommand("SaveA s", 1, "C:\Documen ts and Settings\dhruv\ Desktop\foo.htm ")
IE.disconnectob ject()
destroy IE
-------------------------------------------------------------------------------------------------
Hello Sir,
I am trying to use the saveas function of WebBrowser control through OLE in
my Powerbuilder application. It work fine.
integer OLECMDEXECOPT_D ODEFAULT = 0
integer OLECMDEXECOPT_P ROMPTUSER = 1
integer OLECMDEXECOPT_D ONTPROMPTUSER = 2
integer OLECMDEXECOPT_S HOWHELP = 3
integer OLECMDID_SAVEAS = 4
ole_web.object. Silent = true
ole_web.object. ExecWB(OLECMDID _SAVEAS,OLECMDE XECOPT_DONTPROM PTUSER,'C:\Docu m
ents and Settings\Deskto p\inputtemp.htm ','C:\Documents and
Settings\\Deskt op\outputtemp.h tml')
here what I want is, that it will do all things Silently it will not prompt
to use and I tried
and that I want to do with web browser,
and html file I am saving in html because what html file I am getting from
powerbuilder is not perfect so I am converting it into perfect html so that
I can be open in Excel with all colors.
URLDownloadToFi le function work fine but it is not converting html file in
proper format it will convert it in same format. Not use full for me.
So please tell me how I can use savaas function of WebBrowser silently
giving input and output file name.
URLDownloadToFi le(0, "C:\Documen ts and Settings
\Desktop\temp12 3.htm","C:\Docu ments and Settings\Deskto p\ms.html", 0, 0)
It works fine
Please find two htm file which I am getting from Powerbuilder and second I
want to convert in to required format
Please Do replay