473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

silent saveas ?

TOM
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.ConnectToNewObject("InternetExplorer.Applicatio n") <> 0 Then
Messagebox("Error:","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.execCommand("SaveAs", 1, "C:\Documents and Settings\dhruv\Desktop\foo.htm")

IE.disconnectobject()
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_DODEFAULT = 0

integer OLECMDEXECOPT_PROMPTUSER = 1

integer OLECMDEXECOPT_DONTPROMPTUSER = 2

integer OLECMDEXECOPT_SHOWHELP = 3

integer OLECMDID_SAVEAS = 4

ole_web.object.Silent = true

ole_web.object.ExecWB(OLECMDID_SAVEAS,OLECMDEXECOP T_DONTPROMPTUSER,'C:\Docum
ents and Settings\Desktop\inputtemp.htm','C:\Documents and
Settings\\Desktop\outputtemp.html')

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.

URLDownloadToFile 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.
URLDownloadToFile(0, "C:\Documents and Settings
\Desktop\temp123.htm","C:\Documents and Settings\Desktop\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


Jul 18 '05 #1
0 3169

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: harish | last post by:
i am trying to install jdk1.4.0 using silent installation. i am performing the following steps: 1) First i am writing to a .iss file using the command: j2sdk-1_4_0-win.exe -a -r -f1"C:\setup.iss"...
1
by: Peter Schmiedeskamp | last post by:
Hello, I'm writing in regard to the distutils package for python. I regularly repackage installers for silent/automated distribution on numerous Windows PCs throughout an enterprise. Sites such...
2
by: Mei | last post by:
HI! Sir, I'm having difficulties to save the web browser in silent. when I try to use WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER, "c:\blank.html", "c:\blank.html"
3
by: TThai | last post by:
Hi, I've created an application that uses crystal report in VB dotnet environment. I've created an MSI package to be installed on the client pc to make the crystal report to work. However, the...
5
by: Reddy | last post by:
System.Web.UI.HtmlControls.HtmlInputFile.SaveAs(FileName) is not overwriting the file. It used to work fine on IIS5.1 Recently we migrated to IIS6.0. Since then it's not working. If it's new file...
2
by: Lance Hoffmeyer | last post by:
Hey all, As always, thanks in advance! I am trying to save a ppt presentation but am having problems regarding spaces and am wondering if I am doing something wrong or whether this is a bug?...
3
by: =?Utf-8?B?Um9k?= | last post by:
The applicacion sends me the next message "Method not found: Excel._Worksheet.SaveAs (..." I thinks that its about permissions but I do not know how to fix it. I have the same source in two...
3
by: Chris | last post by:
I'm trying to create an excel file which will act as a log, however I want to overwrite the file if it exists. Looking at the SaveAs method I can't find anything that would allow it. I don't...
112
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.