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

SaveFileDialog won't show existing file

Hi,

I am trying to download a file from website, and to get the local file
name form the user, I am using SaveFileDialog.

I apply the filter (I parse the url to get the file name and assign) to
the saveFileDialog object.
But if my file already exists, it's not shown in the window.

Has anybody ever experienced something this?

regards,
Nayan

Dec 17 '06 #1
3 2695
"Nayan" <cn****@gmail.comwrote in message
news:11*********************@t46g2000cwa.googlegro ups.com...
Hi,

I am trying to download a file from website, and to get the local file
name form the user, I am using SaveFileDialog.

I apply the filter (I parse the url to get the file name and assign) to
the saveFileDialog object.
But if my file already exists, it's not shown in the window.

Has anybody ever experienced something this?

It sounds like you are not using the correct format for the filter. The
format is "File Type|extension". So if they were downloading a zip file,
the filter might look like "Zip Archive|*.zip".
--
Tom Porterfield

Dec 17 '06 #2
Hi Tom,

Yes, you are right. I wasn't using the right filter.
I saw the example on web and used it. But it wasn't right. I was using
brackets like "Jpeg (*.jpg)|(*.jpg)";

Thanks a lot!

regards,
Nayan

On Dec 17, 4:54 am, "Tom Porterfield" <tppor...@mvps.orgwrote:
"Nayan" <cna...@gmail.comwrote in messagenews:11*********************@t46g2000cwa.go oglegroups.com...
Hi,
I am trying to download a file from website, and to get the local file
name form the user, I am using SaveFileDialog.
I apply the filter (I parse the url to get the file name and assign) to
the saveFileDialog object.
But if my file already exists, it's not shown in the window.
Has anybody ever experienced something this?It sounds like you are not using the correct format for the filter. The
format is "File Type|extension". So if they were downloading a zip file,
the filter might look like "Zip Archive|*.zip".
--
Tom Porterfield
Dec 17 '06 #3
Hi Nayan,

The following will work:

"Jpeg (*.jpg)|*.jpg"

The purpose is to display the valid extension to the user, which I find to
be useful.

--
Dave Sexton

"Nayan" <cn****@gmail.comwrote in message
news:11*********************@j72g2000cwa.googlegro ups.com...
Hi Tom,

Yes, you are right. I wasn't using the right filter.
I saw the example on web and used it. But it wasn't right. I was using
brackets like "Jpeg (*.jpg)|(*.jpg)";

Thanks a lot!

regards,
Nayan

On Dec 17, 4:54 am, "Tom Porterfield" <tppor...@mvps.orgwrote:
>"Nayan" <cna...@gmail.comwrote in
messagenews:11*********************@t46g2000cwa.g ooglegroups.com...
Hi,
I am trying to download a file from website, and to get the local file
name form the user, I am using SaveFileDialog.
I apply the filter (I parse the url to get the file name and assign) to
the saveFileDialog object.
But if my file already exists, it's not shown in the window.
Has anybody ever experienced something this?It sounds like you are not
using the correct format for the filter. The
format is "File Type|extension". So if they were downloading a zip file,
the filter might look like "Zip Archive|*.zip".
--
Tom Porterfield

Dec 18 '06 #4

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

Similar topics

0
by: Codex | last post by:
I'm using VC++ in Visual Studio 2003 to write a .NET wrapper class which accesses some unmanaged c code. When debugging, I've noticed that sometimes the debugger won't show values of unmanaged...
4
by: Naeem Sarfraz | last post by:
Platform: VS.Net, Unmanaged MFC C++ Application I used the "Add Class -> MFC -> MFC Class From ActiveX Control" wizard to generate a class for my charting control. Now I'm attempting to add the...
3
by: +The_Taco+ | last post by:
I have just finished an ASP.NET application and it works all OK on my localhost. Now, I need to move the application on another server, wich VS.NET is not installed. So I did install .NET...
1
by: Jurjen de Groot | last post by:
Hi, I've been reading a book about webparts and am now trying some of the examples from the book, but I crash on the first, most simple (following) example : I create a new website in VS2005...
1
by: Jurjen de Groot | last post by:
Hi, I've been reading a book about webparts and am now trying some of the examples from the book, but I crash on the first, most simple (following) example : I create a new website in VS2005...
3
by: Derek | last post by:
Hi I am retrieving a fielname for a picture in PHP/MySQL and would like the existing filename that is being retrieved from the database to be shown in a file input. How do I do this please? ...
1
by: =?Utf-8?B?U29waGll?= | last post by:
Hi, I have a button for user to click and specify a folder destination, not file name, for example: "C:\foldername1", and this path will appear to a text box. How do I do it by using...
5
by: Mark Olbert | last post by:
I just noticed something weird about the calendar control in ASPNET2. If you assign a value to SelectedDate that has a time component (e.g., 3/1/2007 10:37 AM), and you have a custom style for the...
2
by: Steve Luk | last post by:
Let me start by saying I'm a newbie to this .Net development and I'm currently assigned to crack into an old ASP.NET v1.134 website source to rebuild it. The website is part of a solution consisting...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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
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.