Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I wish to create a .csv file whose name is provided by user and also at the location is defined by user.
Save filesavedialogbox or browsefiledialogbox can not be used.
Their is nothing like "filecreatedialogbox" that could solve my problem???


Thankx in advance
Posted
Comments
Amund Gjersøe 6-Sep-12 13:26pm    
Why can't filesavedialogbox be used, but your imaginary filecreatedialogbox? You'll get the full file path from the regular filesavedialogbox, and you set the FileMode in the FileStream to CreateNew if that is the issue.
vicvis 13-Sep-12 13:20pm    
Hi sry for delay in reply.Was not Well for long.
Well file save dialog box is nice option but can it be restrivted to only .csv extension??

1 solution

SaveFileDialog just gives you a file name, it's up to you to use the filename and create the file.

See the documentation : http://msdn.microsoft.com/en-us/library/system.windows.forms.savefiledialog.aspx[^]
 
Share this answer
 
Comments
Abhinav S 6-Sep-12 13:30pm    
5!
Mehdi Gholam 6-Sep-12 13:36pm    
Thanks Abhinav!
vicvis 13-Sep-12 13:20pm    
Hi sry for delai in reply.Was not Well for long.
Well file save dialog box is nyc option but can it be restrivted to only .csv extension??
vicvis 13-Sep-12 13:23pm    
N thanks for you time...i got my solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900