saveas

GUI design: Merge 'Save' and 'Save as', any ideas?

I am working on a GUI (OpenG Builder), and want to merge the Save and Save As button into one button. Does anyone have an idea how to perform such an act? My thoughts go to a 'hot spot' for 'save as' on the right side of the button, indicated by a glyph. Any other ideas or GUI screenshots implementing such a feature in an intuitive way...

Outlook 2002 Issues Saving an Embedded Post

I'm writing an Outlook COM addin using C++/ATL. I'm getting a rather odd set of errors and results back from Outlook when I call _PostItem::SaveAs. This only occurs in Outlook 2002 (Outlook XP) and only when the _PostItem is an embedded item (an attachment of some other outlook item). If the Post is an HTML type, it fails with E_INVALI...

How do I prompt user to save text (xml) to a file?

Hi, I've have some javascript code that transforms XML with XSLT. I now want the user to be able to save that new XML (either by prompting them or throwing the new XML up as a file or something so that the user can then save it. Anybody know how to do that? var xmldoc = new ActiveXObject("Microsoft.XMLDOM"); xmldoc.async = false; xml...

Implementing SaveAs with NHibernate

In a project I am working on we are developing Save-As functionality for a windows desktop application. This should allow the user to save his work (in a project) to a different location (just SaveAs ;). Our project file contains a sqlite db with our domain objects and the persistency is done using NHibernate. Now our SaveAs logic look...

(Save Dialog) How to change file extension automatically on file filter change in Vista/Win7 ?

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...

How can I output a report in PDF format, where the name consists of values from fields?

I want to add functionality to my Access 2007 report whereby a PDF copy of the report is created at the click of a button. I know that there is an OutputTo macro which can do this for me, but it does not allow me to include report field values as part of the PDF's filename, namely: [Client Organisations].Code + "-" + Clients.Code + "-" +...

save plot into image file in matlab: difference between saveas and print

Hi I wonder when saving plot into image file in matlab, what is the difference between saveas and print? In what cases both can be used and in what cases only one can be used? Thanks and regards! ...

change the "save image as..." name of images produced by an http handler in .net

I have a series of images stored in a MySQL database that I am displaying with a .NET Http handler (showImage.ashx). If the user right clicks on an image and selects "save image as...", the image name always defaults to 'showImage.jpg'. I have potential image names saved in the database, is there any way to control the default save nam...

The SaveAs method is configured to require a rooted path, and the path <blah> is not rooted.

OK I've seen a few people with this issue - but I'm already using a file path, not a relative path. My code works fine on my PC, but when another developer goes to upload an image they get this error. I thought it was a security permission thing on the folder - but the system account has full access to the folder (though I get confused...

HTML: how to create a "save as" button?

In your browser, when you want to save an HTML page that you are currently viewing, you normally go to the File menu and click Save As. Can I have a little button at the bottom of an HTML page that does the same thing? So instead of going to the File menu -> Save As, I want my user to be able to click the button to save the page on to ...

PHP generated XML file to load correct file type in the save as dialog

I have a PHP file called dynamicxml.php that runs a bunch of code, draws data from a database and creates an XML file. When I right-click and save the link for dynamicxml.php?var=test I need the dialog box to select xml as the default file type and rename the file to var.xml: header("Content-type: text/xml"); echo '<?xml version="1.0" e...

Why this strange behavior in google chrome and IE?

I am using fpdf library and generating pdfs... What happens when i click ExportToPdf button in firefox it opens the Save as dialogbox but google chrome and IE just opens the pdf file in browser, the save as doesn't seem to open it... Why this strange behavior? ...

How do I combine alert popup in save as file function in asp.net?

I'm tring to write a function that need to save a file (in csv) and has a condition. it's something like that: If the file is small then 1MB then I want to pop up an alert in javascript and then continue with the save as file commands. What I did was: if(...) { } else { ClientScript.RegisterStartupScriptBlock(...alert('aaa')...); } ...

Problem with Save As dialog in IE 7,8 in ASP.NET

hello all, i'm trying to write code that download a file that located on the server. but the save as dialog wont open in IE. i tried response.redirect, i tried Response.Clear(); Response.ContentType = "text/csv"; Response.AddHeader("Content-Disposition", "attachment; filename=" + fileNameDisplay); Response.WriteFile(Server.MapPa...

Why can't I "save as" an Excel file from my Python code?

I have an Python ExcelDocument class that provides basic convenience methods for reading/writing/formatting Excel files, and I'm getting a strange error in seemingly simple Python code. I have a save and saveAs method: def save(self): ''' Save the file ''' self.workbook.Save() def saveAs(self, newFileName): ''' Save the file a...

Offering a file "save as" dialog after an HTML form submit

I have a JSP page that needs to accept some info into a form, having said form submit to the same page with an extra "Thanks for __" div that is placed only after the form submit (using a parameter check). However, I also need to serve up a file on the server for download, but I can't mess with the header's content-disposition to serve...