473,563 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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


Jul 18 '05 #1
0 3217

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

Similar topics

0
2122
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" 2) then i am going thru the installation by entering the destination path and the installation is getting successfully finished. 3)i...
1
2792
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 as AppDeploy (http://www.appdeploy.com) and tools such as WISE all suggest that this is a pretty common task. Increasingly, however, I've found...
2
634
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
41838
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 MSI requires User Intervention. Does anyone know how to create MSI in a silent mode in visual studio. This application will be pushed to the client...
5
1847
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 it works fine. For the same file getting the error "Access to the path "" denied. I gave fullcontorl to ASPNET user on the folder. Please help...
2
4120
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? Also, is there a way around this other than not using spaces in paths or filenames? I can create filesnames without spaces but don't have much...
3
6215
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 different servers, It work in one of these but it doesn's work in the second one. oExcel = New Excel.Application oExcel.Visible = False :...
3
7793
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 want the prompt to appear to ask whether to replace the file or not. I just want to replace it without thinking. Thanks in advance.
112
5380
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 that may print some messages. foo(...) { if (!silent)
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.