473,386 Members | 1,997 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,386 software developers and data experts.

is it ossible to modify the saveas filename from webbrowser

GS
I ma in the process of automating/expediting some download from a secure
website, when Currently I would click on the control webbrowser to view and
then on the popup choose save, then change the default filename before
saving.

is it possible to automate these clicks and then also replacing the prefix
and part of the filename according to a set or rules? the default filename
has 3 part prefix-part1-part2
part1 and part 2 is actually yyyyMmmdd dates which I would like to change to
yyyymmdd

your help is much appreciated
Jun 27 '08 #1
3 1305
I'm quite confused about your environment and issue, but just to
mention, you can set a download to the client by sending to him a
stream with the apropriate headers (Content-Disposition).
I've tested here to add this header on the html with a meta tag. It
works for your purpose in Firefox, but not in IE6.
<meta http-equiv="Content-Disposition" content="attachment;
filename=file.html" />

Thiago
Jun 27 '08 #2
Using AddHeader instead should work for both :

http://support.microsoft.com/kb/260519/en-us

--
Patrice
"Thiago Macedo" <th**********@gmail.coma écrit dans le message de groupe
de discussion :
2d**********************************...oglegroups.com...
I'm quite confused about your environment and issue, but just to
mention, you can set a download to the client by sending to him a
stream with the apropriate headers (Content-Disposition).
I've tested here to add this header on the html with a meta tag. It
works for your purpose in Firefox, but not in IE6.
<meta http-equiv="Content-Disposition" content="attachment;
filename=file.html" />

Thiago

Jun 27 '08 #3
GS
thank you.

So I would have to preparse and modify the html in the webbrowser and
modify accordingly?

if that is the case I guess this name control feature would have to postpone
of later version

BTW the html is not from my own website but from the third party in https
session. hence I was hoping I can use/build a simple component to control
the download or save instead

"Patrice" <http://www.chez.com/scribe/wrote in message
news:98**********************************@microsof t.com...
Using AddHeader instead should work for both :

http://support.microsoft.com/kb/260519/en-us

--
Patrice
"Thiago Macedo" <th**********@gmail.coma écrit dans le message de groupe
de discussion :
2d**********************************...oglegroups.com...
I'm quite confused about your environment and issue, but just to
mention, you can set a download to the client by sending to him a
stream with the apropriate headers (Content-Disposition).
I've tested here to add this header on the html with a meta tag. It
works for your purpose in Firefox, but not in IE6.
<meta http-equiv="Content-Disposition" content="attachment;
filename=file.html" />

Thiago


Jun 27 '08 #4

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

Similar topics

0
by: TOM | last post by:
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
0
by: bracoute | last post by:
Hello ppl... 1) i've finally got my automation launched correctly.. but this time i wanna know how to close my winword.exe process which seems to remain in memory despite closing the app......
7
by: ljlevend2 | last post by:
Is there any way to modify a document before it is displayed by a System.Windows.Forms.WebBrowser control? The Navigating event occurs before the document is loaded, but it does not expose the...
6
by: Dave Slinn | last post by:
I have a VB app hosting the Webbrowser control. I would like to add "something" to the requests that app is submitted to our web application to indicate that its from this webbrowser and not a...
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: mark13.pl | last post by:
Hi, In word macro such thing worked perfectly: With ActiveDocument .SaveEncoding = msoEncodingUTF8 .SaveAs FileName:="c:\test.doc", FileFormat:=wdFormatUnicodeText End With When I tried to...
0
by: mandogon | last post by:
what i want to do is instead of saving a file in a particular predefine section i want a save as diolog box to come up and ask me to put the file name in this is what i have so far but cant get the...
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?...
17
by: jschmidt | last post by:
Hello everyone, I have a button on a form that calls a function to populate some textboxes with where criteria that is used in a parameterized query this is then used as the table source for a...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.