I have an XBAP app, which shows some pictures, and my users would like to save some of them to disk. But my XBAP app runs in the partial trust mode, so it can't initiate SaveFileDialog, not to mention it can't access the File System.
What's would be the Stack Overflow recommended way to save a pic to disk in this case?
...
In accordance with this question I am customizing a Win32 Save File dialog with a custom template description. Now I have a problem where the Save File dialog doesn't show the left-hand bar with my computer, recent places, etc. I can confirm that removing the custom template brings the left-hand sidebar back. What am I doing that warrant...
Hi,
While showing a save dialog, I want to hook user's filter type change and change file extension automatically. (e.g. like MSPaint's "Save As" operation.)
With TSaveDialog and setting UseLatestCommonDialogs := False,
I can handle this by the following code. (without latest common dialog support, of cource.)
procedure TForm1.SaveD...
I have been searching up and down the web and unfortunately never came across an issue quite like mine, so here goes:
My C# WPF application won't show me no OpenFileDialogs or SafeFileDialogs.
private void btnBrowseNet_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.CheckPath...
Hello all:
App.config:
<add key="SaveDraftPath" value="C:\Drafts\"/>
C#:
var saveDraftPath = ConfigurationManager.AppSettings["SaveDraftPath"];
var sfDialog = new SaveFileDialog();
sfDialog.InitialDirectory = saveDraftPath;
sfDialog.FileName = "FILE";
For some reason this doesn't open the filebrowser in the path like planned, any...
I'm creating a richtextbox editor and need to put a save function as well as a save as. I can easily do a save as function by using the savefiledialog but im not sure how to save without this. Can anyone help?
...
Hi,
I am doing a small program to open an excel spreadsheet, update it then save it to a new file then close everything up.
It is all mostly working except when I use the SaveFileDialog the popup window is hidden behind the excel window, on the first attempt only (following attempts, triggered by a button, all work with the SaveFileDia...
Me and a few of my coworkers are experiencing an odd issue in Visual Studio 2008 and Windows 7 (64-bit). We use VSS6 for our source control (unfortunately).
We have an issue where we will make a change to a checked-out file, resulting in the file getting checked out as expected. But when we go to build the project, or try to save th...
Hello,
I am attempting to return a image from a server using Silverlight 3. The server returns the Response stream like this:
context.Response.ContentType = imageFactory.ContentType
imgStream.WriteTo(context.Response.OutputStream)
imgStream.Close()
context.Response.End()
On the Silverlight client I am handling the stream like:
...
I am trying to download a File from Remote Machine using FTP and Save as Dialog. I am able to Download '.txt' File with its Contents. However, the same code doesnt work with other file types('.bmp','.jpg','.doc', etc.). I am able to use the save as dialog to download these files but either contents are not displayed or files are Corrupte...
Hello, I have a html page, and when I click a file link on the page, the file download dialog pops up, and this file dialog locks the page. I mean without selecting one of the choices(Open, Save, Cancel) I can't do anything on the page (which is normal). What I need is if javascript can check whether the page is locked or not. (or whethe...
I have a save as image feature for charts in my application. The chart control is a custom user control with custom logic in them. It also has some scaling based on size, zoom etc. However, while saving them as an image I would like to give the user the option to set the size of the image (eg: 800x600 px @ 300 DPI).
To do this I have cr...
I have a web application that allows you to download a zip file containing data saved in an oracle blob. For some reason when I make a call to SaveFileDialog.ShowDialog() it shows the dialog behind the browser window, so you have to minimize the browser to use the control.
This is using Visual Studio 2008 with aspx and C#. I am thinki...
I'm writing my first app in MFC, and I was looking to include a very simple feature : Include a "Save To File" button that on being clicked will bring up the familiar "Save As.." Dialog box and will ultimately save the data in a text file. I couldn't find how to invoke this dialog box - can someone just point me at the right way to do i...
I have some buttons on my WPF UI and I also need to choose files from time to time. I kept noticing strange problems where when I double-click an item in the file dialog, a button on the main UI would also get clicked. After experimenting, it seems that if you line up an item in the file dialog with a button behind it on the main UI an...
I've got a web app that I'm porting to an OS X Dashboard widget. The web app generates some data on the client side using JavaScript, and then, when the user wants to save it, sends it to a server-side script which relays the data back with the Content-disposition: attachment; HTTP header, triggering a save-file dialog in most browsers.
...
Hi all, I am having an issue with SaveFileDialog for some reason. All I want to do is extract data from a text box line by line and write it to a text file, then save that text file to the desktop. The first bit of code works fine (though it doesn't save to the desktop). The second bit of code is what I want to use, but when it create...
I'm writing a web application that, among other things, allows users to upload files to my server. In order to prevent name clashes and to organize the files, I rename them once they are put on my server. By keeping track of the original file name I can communicate with the file's owner without them ever knowing I changed the file name o...
The SaveFileDialog in Silverlight lacks a DefaultFileName property, resulting in the user having to enter the file name manually with every file download from a Silverlight application.
This is very annoying and there's a lot of criticism about this, see the Silverlight forum.
My question is: what is the most elegant way to get around ...
I have an anchor tag:
<a href="file.pdf">Download Me</a>
I would like for the user to click on it and then have a Save-As dialog box appear with a new filename I determine.
I found this(http://www.w3schools.com/php/func_http_header.asp):
header("Content-type:application/pdf");
// It will be called downloaded.pdf
header("Content-Dis...