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
-1
votes
1 answer

VBA - Browsing, selecting file and saving file as

I am creating an access database with forms and reports. in one of my forms I want to be able to go to a folder selecting a file (.pdf, .doc, .xls) and then saving it in a dedicated "attachments" folder. I know about OLE objects and the attachment…
jfc85csc
  • 1
  • 1
  • 1
-1
votes
1 answer

F# saveFileDialog

I'm trying to save a file using saveFileDialog in F#. So far I've looked at this post and tried to rewrite that and other code on the net. I've also read a bit about saveFileDialogs on msdn. I Think that my code should work but for some reason it…
-1
votes
2 answers

Using JFileChosser or FileDialog to generate save dialog window

I am working on Jasper Report. I need to ask from a user where to save the generated report. For that, I need to open a "Save As" dialog box. I tried it using JFileChooser and FileDialog. But, during execution of my code, when execution reaches the…
-1
votes
2 answers

Ask location to save text file created using c#

i am exporting datagridview data into format of text file, i tried the below code string dirLocationString = @"C:\Users\palanar\Desktop\result.txt"; StreamWriter sW = new StreamWriter(dirLocationString); string lines = ""; …
Archana Palani
  • 247
  • 1
  • 6
  • 23
-1
votes
1 answer

Save xml file by path from user select

I'm success to save objects in xml file by path that I given. now I want to save in path that user select( I want FileDialog Box that the user select in the computer exactly where to save and can to creat/replace new file.xml) I try to do by this…
B.Tubul
  • 13
  • 4
-1
votes
1 answer

Saving RichText Box's Text as Text File

private void saveToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog save_file = new SaveFileDialog(); if (save_file.ShowDialog() == DialogResult.OK&&save_file.FileName.Length>0) { …
Salim
  • 143
  • 11
-1
votes
1 answer

SaveFileDialog not getting opened in VS2010

I have created an application in visual studio 2010 using C#.net. In that application I am generating MS-Word report... For that I have used SaveFileDialog for saving that documnet to a particular location.. Initally it was woking fine...But from…
-1
votes
2 answers

File dialog is throwing unknown error

Hi this is a save function for my program, this is the first time using "file dialog function" it is throwing an error I am not sure how to fix it. The constructor FileDialog(Frame, String, int) is ambiguous import java.awt.FileDialog; public…
Takhata101
  • 29
  • 3
  • 11
-1
votes
2 answers

Get where is mySaveFileDialog folder

hi i wanna create backup data in my application I used saveFileDialog, so i can place backup file anywhere i want (Dekstop, drive D, etc) mySaveFileDialog.FileName = "Backup Database " + dateTimeNow; if (mySaveFileDialog.ShowDialog() ==…
Surya Matadewa
  • 1,017
  • 5
  • 19
  • 38
-1
votes
1 answer

StreamWriter leaving a file even if not saved

I have this code to write some data from textboxes into a textfile. And i'm using streamwriter to do this. Here you may see the code below: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click …
Jeff
  • 17
  • 1
  • 6
-1
votes
1 answer

save as dialog to save TextBox Data into a file

I have one TextBox, It has some data. There is a Button. So When I click the button, "save as " dialog should popup to save the text TextBox Data into a file. I have tried various ways, but getting errors n error. Here I am giving you brief idea how…
vivek jain
  • 591
  • 4
  • 13
  • 28
-1
votes
2 answers

Saving File to a Folder in My Documents

I'm using a save file dialog to save an excel file from my data grid view and I want to save a file in a folder in My Documents. Then, if that folder is not existing, the folder will be created. How do I do that?
alois
  • 159
  • 5
  • 16
-1
votes
1 answer

Why does my SaveFileDialog display again if cancelled?

I have a SaveFileDialog in my program. The issue is that when I click "Cancel" on the dialog, another SaveFileDialog opens up. But when I click cancel on the second SaveFileDialog, a third does NOT appear, so it's not a loop or anything like that. I…
Toby
  • 377
  • 1
  • 10
  • 23
-1
votes
1 answer

how to download file from server to client machine into default folder set in browser without save/open dialogue?

In my jsf application files names are displayed using datatable component with checkbox option for each files and their is a single download button. When user select any file and click download button it should download into client machine default…
nagesh
  • 307
  • 2
  • 10
  • 22
-1
votes
1 answer

import/export text to/from listview

i am having two problems: 1- when ever i click on open button, it shows me the openfiledialog twice (when i select my file and click ok, it reopens the selection windows again, only repeats it once). 2- i am trying to export and import text files…
Omarrrio
  • 1,075
  • 1
  • 16
  • 34