save-dialog

Display Save File Dialog for a string ASP.NET C#?

有些话、适合烂在心里 提交于 2019-12-31 04:44:09
问题 I am generating a string, which right after generating I want to display a save dialog to allow this to be saved to the user's local machine. I don't want to save it to a file on the server, just have the user save it then clear out the string. Is this possible? I looked at SaveFileDialog but wasn't sure if it would accomplish this. Any help is appreciated, thanks! 回答1: You need to set certain headers to raise a file dialog box on the client. I think this is what you mean. See here: http:/

Very strange error in my app from component

ぃ、小莉子 提交于 2019-12-13 03:38:44
问题 Ok my application does everything that is it suppeded to do and it does the same thing every time so its not as if testing was gone be that much trouble. it crashes "somtimes" not always. it does this when i hover the mouse over a file in the open file dialog i have recently outputted. not instantly it waits about half second to a second, and i know that is when the openfiledialog brings up data such as file size and when it was created and what type of document it is..(standard)mouse hover

How To Customize A JFileChooser

爱⌒轻易说出口 提交于 2019-12-12 00:45:38
问题 I want to customize my JFileChooser so that instead of saying "Folder Name" at the bottom I want to set it to say "Picture Name" and at the text field I don't want that to change based on where i'm clicking, i want it to just stay blank the whole time. Anyway I could do this. basically I just want to customize my JFileChooser: 回答1: The file chooser wasn't designed to be customized in this way. The proper solution would be to customize the UI of the file chooser. For a hack you can try using

Ask user where to save file with Node.js

耗尽温柔 提交于 2019-11-27 16:32:16
问题 I'm creating an app using node-webkit, so there's a lot of javascript. I have written a node.js function that will take a screen shot and save it to the disk, however, it saves it to the project root dir and I would like to prompt the user to choose a save location, but I cannot find a way to create a save file dialog. Current code: screen_shot.js: var fs = require('fs'); exports.buildFile = function(name, value) { var img = new Buffer(value, encoding='base64'); fs.writeFile(name, img,

Save dialog box to download file, Saving file from ASP.NET server to the client

邮差的信 提交于 2019-11-26 14:46:51
问题 I've been searching around the internet, but couldn't find any useful answer. I have an ASP.NET web site, which is deployed on server. The ASP.NET web site on the server can access a directory called W:/ . The clients in the company can access the web site. The web site lists in a ListBox all the PDF files from the W:/ directory. The client should be able to select PDF files from the listbox and save them to it's local PC by selecting a location for it. Something like save as file on web