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
0 answers

How to copy an access database and save it using c#?

im trying to save an access database file by creating a new database file and save it anywhere as the user like and also name the file. i tried using this code but it say 'the file cannot be access as it use by another process'. any idea? private…
0
votes
4 answers

Save as DialogBox to save textbox content to a newfile using asp.net

I want the users to type their text in the given textbox and on clicking on createNewFile Button, a SaveAs Dialogbox should popup and the users should browse through the location and save the file as desired. I have tried some thing but 1. The…
user195114
  • 31
  • 2
  • 9
0
votes
1 answer

check if a file is saved with vba

I want to give the possibility to save a powerpoint presentation when my macro executes. I don't want it to be mandatory so I will insert a pop up asking if they want to save it. But one problem that I see is that if it is already saved, I don't…
Iban Arriola
  • 2,526
  • 9
  • 41
  • 88
0
votes
1 answer

VBA Download Files from website and save them in local without manual intervention

I have a button in a website to download textfile, and Once I click on it, I will get a save as dialogue box to save the file. I know how to click on button but I need your help in handling the save as dialogue box.. there should not be any manual…
0
votes
1 answer

SaveDialog in Flex passes FileName and Path to Server Side C#

So I've got a flex project that runs on the desktop. I've also got server side C# code that I run to export some data into a PDF when ever I click a button on the flex application. Currently I just auto save the files to the temp folder inside of…
user2216177
  • 41
  • 1
  • 8
0
votes
3 answers

SaveFileDialog disables webpart buttons in Sharepoint using C#

I have button that opens a saveFileDialog to save a downloaded file to a clients PC. After you save the file, or press cancel, the buttons on the web-part becomes unresponsive. Why does this happen, and how can you fix it? Code for webpart (I tried…
Ruan
  • 3,969
  • 10
  • 60
  • 87
0
votes
1 answer

change name of file in SaveFileDialog

in my WinFormsApp user can add picture in a folder of hardDrive with SaveFileDialog. if there is a picture the same name as new picture an alert is shown that user must rename the new picture. how can I change name of the picture with adding a…
user1837982
  • 93
  • 1
  • 1
  • 7
0
votes
1 answer

Save File Prompt instead of FileWriteAllBytes

Long time lurker first time poster. Working with .Net / Linq for just a few years so I'm sure I'm missing something here. After countless hours of research I need help. I based my code on a suggestion from…
DysonGuy
  • 163
  • 1
  • 11
0
votes
0 answers

IE save target as for a pdf file

In IE if i open any link of an pdf file it opens in the browser itself due to association. But i want it to open a save window asking user where to save(same as save target) using command line. How it can be done?
Navaneet
  • 1,367
  • 1
  • 19
  • 44
0
votes
1 answer

SaveFileDialog file extension is default Excel version

I have the following code that saves the file in the default Excel version ona given user's machine. xlWorkBook.SaveAs("c:\\AMORT_data", Excel.XlFileFormat.xlWorkbookDefault, misValue, misValue, misValue, misValue,…
Ryan Ward
  • 1,523
  • 4
  • 15
  • 23
0
votes
2 answers

Attempted to read or write protected memory. This is often an indication that other memory is corrupt

I'm working on a windows form project and it creates a PDF file. I want to save file where user want it to. I use a SaveFileDialog for this. When I click "Save as a PDF" button on my form I get this error code. Attempted to read or write protected…
Erdinç Özdemir
  • 1,363
  • 4
  • 24
  • 52
0
votes
1 answer

How to get the value of the selected check-box and save them in XML format using save dialog box

I have an application where I have different checkboxes placed in JTable. I want to get the selected values of the column to create an xml file based on the value selected by user. There are different attributes in it and I want to select selected…
0
votes
1 answer

save as dialog box to save a PDF file

I am trying to display a save as dialog box to save a PDF file. This should happen on click of a link in the JSP. On click of this link I call a struts action which prepares PDF and forwards to another JSP 'download.jsp' which I want to use for the…
Kalo
  • 1
  • 2
0
votes
1 answer

I'm trying to stop SaveFileDialog from being prompted from elseif DialogResult.No (and cancel)

Basically I'm a beginner at this sort of thing, and I'm trying to practice by creating my own Note Pad application, by similarly replicating Microsoft's Notepad. I have searched online for hours to no prevail. So the problem, I've began with the…
Daniel
  • 51
  • 1
  • 5
0
votes
2 answers

Response.WriteFile() -- not working asp net mvc 4.5

I've looked at many resources and the following should work, however my save as dialog box is never showing (not browser specific): Response.ContentType = "application/octet-stream"; string downloadName = "Request "+request.RequestID+…
lohiaguitar91
  • 522
  • 5
  • 9