Questions tagged [savefiledialog]

The SaveFileDialog is a (component) class in the .NET Framework that prompts the user to select a location for saving a file.

The SaveFileDialog component allows users to browse the file system and select files to be saved. The dialog box returns the path and name of the file the user has selected in the dialog box. However, you must write the code to actually write the files to disk.

654 questions
0
votes
2 answers

How to make a selected path to save an XML file?

I have a function that can save a .xml file. private void buttonSaveXML_Click(object sender, EventArgs e) { SaveFileDialog saveFile = new SaveFileDialog(); saveFile.Filter = "XML Files|*.xml"; saveFile.Title = "Save a Xml File"; …
Baked Potato
  • 294
  • 1
  • 4
  • 17
0
votes
1 answer

i want to write a code where after saving the file by savefile dialog and then editing it again to save the savedialog box should not appear

i can save a file using savefiledialog . once the file is saved and if we edit it and then save it again then it should be saved without opening the savefiledialog.please help me with the code. This code is made in Visual Studio 2005 in Windows…
Sweet Angel
0
votes
4 answers

Saving Stream.Write to existing .CSV file doesn't replace data, only adds to existing data. How do I only replace the data?

The following code is used to save a CSV string, however, if I save to an existing .CSV, instead of replacing the data, it only adds the new string to the data already there. How do I remedy this? Is it something inherent to how the Stream.Write…
Brett H
  • 37
  • 1
  • 8
0
votes
3 answers

How to change design so it won't display the text-field?

Possible Duplicate: input type=file show only button The has this kind of design: Can I modify it so it won't show the text field?
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
0
votes
1 answer

Save dialog for string writer

I am using the below code to export data to csv format. Normally its stored into the system desktop. i want to save various location thats why need save dialog. But i can't do this please help me to do it.. My partial code is here : …
Bharathi
  • 33
  • 3
0
votes
1 answer

Saving txt file using saveFileDialog (C++)

I can't manage to save a text file using the "saveFileDialog". I have looked trough many forums and tutorials, but i cant get the right information from neither. So far i have managed to open the Save file dialog and it actualy saves an empty text…
krishkule
  • 79
  • 4
  • 12
0
votes
5 answers

C# saving file cuts away part of my text

I use this code to save my xml file. SaveFileDialog saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.DefaultExt = ".FFDATA"; saveFileDialog1.Filter = "Form|*.FFDATA"; saveFileDialog1.FileName = "A_"+code;//here code is a generated number,…
Andrius Naruševičius
  • 8,348
  • 7
  • 49
  • 78
0
votes
2 answers

.NET Web Browser Control - SaveAs Event

Does anybody know if you can access the SaevFileDialog control that's used by the WebBrowser control? Once somebody saves the webpage being displayed I need to catch where the files have been created; however I can't seem to find any events/members…
Dale
  • 1,711
  • 2
  • 20
  • 30
0
votes
2 answers

C# Open/SaveFileDialog with a different file system

I'd like the standard windows open and save file dialogs, however, the particular application I am using it for is a remote file system (basically, I'd love to somehow just provide a IFileSystem interface to SaveFileDialog and have it magically…
Trevor Sundberg
  • 1,584
  • 1
  • 14
  • 25
0
votes
1 answer

How to change Label Text into the name of the file Saved

I'm trying to change the Label.text into the Name choose of the File that i'm going to save. This is the Code: Dim saveDlg As SaveFileDialog = New SaveFileDialog saveDlg.Filter = "JPEG (*.jpeg)|*.jpeg |All Files |*.*" saveDlg.Title = "Save…
Valerio
  • 278
  • 1
  • 6
  • 18
0
votes
1 answer

Saving a data:url of a PNG image locally using Google App Engine

I am using Google App Engine (python) and have a data: url of a PNG image available on the server. The PNG image was never in a file, as it was generated from some canvas code using toDataUrl() and ajaxed to the server. I would like to allow the…
0
votes
3 answers

Remove the "open" button in save file dialog (IE only)

I use the following code to generate a save file dialog: Response.AppendHeader("content-disposition", "attachment; filename=" + name); Response.WriteFile(Server.MapPath("~/test.html"), true); Response.End(); Works as intended. However, I would like…
Johan
  • 35,120
  • 54
  • 178
  • 293
-1
votes
1 answer

Cute pdf writer save dialog issue

I am opening 2 reports at the same time, when i select my printer as cute pdf writer and click print: a.) Report 1 prints, then i get a cute pdf writer's save dialog pop up to save the report1. b.) Report 2 prints, then i get a cute pdf…
Sharpeye500
  • 8,775
  • 25
  • 95
  • 143
-1
votes
1 answer

Create themed/skinned WPF FileDialogs

I would like to have my own FileDialogs like OpenFileDialog,SaveFileDialog,BrowseDialog etc... to skin them with the theme of my application to have a unique look/user experience. Well I know I cant skin the win32 dialogs but what about creating my…
msfanboy
  • 5,273
  • 13
  • 69
  • 120
-1
votes
1 answer

How do I read and write this array of structure to/from a file?

I'm trying to write the array persons to a file and read it and have no clue on how to go about it. Here's my code: Public Class Form1 Structure Person Public name As String Public height As Integer Public weight As Double End…