Questions tagged [save-as]

This tag refers to a common UI prompt type that asks a user under what name they wish to save a file as.

Use this tag for questions related to building or using such a prompt.

514 questions
394
votes
4 answers

How to save as a new file and keep working on the original one in Vim?

Whenever I use the :sav command, it saves the file with a new name and opens the new file open in Vim. Is it possible to save the file with a new name but keep the original one open for editing?
vimguy
  • 3,949
  • 2
  • 15
  • 3
272
votes
17 answers

Is there any way to specify a suggested filename when using data: URI?

If for example you follow the link: data:application/octet-stream;base64,SGVsbG8= The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself. Is there any way of suggesting a default name in the…
MontyGomery
21
votes
3 answers

PDF Handler : content-disposition filename

I am outputting a PDF file in a Web browser (IE8) HttpContext.Response.writefile(fileName) and it works great. When I try to save the file, it will give me the name of the ashx handler as a default. I would like to actually pass the real name. I…
user2062308
  • 213
  • 1
  • 2
  • 5
20
votes
4 answers

Using Selenium in Python to save a webpage on Firefox

I am trying to use Selenium in Python to save webpages on MacOS Firefox. So far, I have managed to click COMMAND + S to pop up the SAVE AS window. However, I don't know how to: change the directory of the file, change the name of the file, and …
Tommy N
  • 365
  • 1
  • 4
  • 12
16
votes
6 answers

Getting "method saveas of object _workbook failed" error while trying to save an XLSM as CSV

I'm trying to save a macro-enabled Excel workbook as a csv file, overwriting the old one (below I had to change the name of the folder and the Sheet, but that doesn't seem to be the issue). Sub SaveWorksheetsAsCsv() Dim SaveToDirectory As String …
Riccardo
  • 337
  • 1
  • 2
  • 7
15
votes
3 answers

Download a file from Servlet using Ajax

I have created a zip file in my servlet. Now I would like to trigger that servlet using Ajax and prompt the download dialog to the user. I can trigger the servlet, but I don't know how to get the save dialog. How can I achieve this?
Vinay
  • 183
  • 1
  • 3
  • 9
14
votes
1 answer

Save MATLAB figure with different background color

I want to print a MATLAB figure with a dark background and white labels. If I use the print or saveas command I lose somehow the colors. The plot symbols are dark again and the background is white. points =…
Thomas
  • 269
  • 1
  • 5
  • 12
13
votes
3 answers

Winforms Save as

Does anyone know any articles or sites showing how to create a "Save as" dialogue box in win forms. I have a button, user clicks and serializes some data, the user than specifies where they want it saved using this Save as box.
Funky
  • 12,890
  • 35
  • 106
  • 161
12
votes
1 answer

Remove illegal characters while saving workbook Excel VBA

this code basically reformats an xls file and saves it as an xlsx. however it uses G2 & H2 to grab the filename for the newly formatted file. So that means certain characters can't be in the file name. I added a chunk of code to replace those…
Alberto Brown
  • 345
  • 1
  • 7
  • 24
12
votes
1 answer

Save Excel range as pdf

I'd like to 'save as' a specific sheet or specific range to pdf. I tried implementing a range into my code. Here is what I've been working with: ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ "c:\Book1.pdf", Quality:= _ …
cheapkid1
  • 469
  • 7
  • 18
  • 32
11
votes
3 answers

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

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!
Tim
  • 1
  • 141
  • 372
  • 590
10
votes
3 answers

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

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…
benok
  • 688
  • 1
  • 6
  • 21
10
votes
4 answers

How to download, zip and save multiple files with Javascript and get progress?

I'm creating a Chrome extension that needs to download multiple files (images and/or videos) from a website. These files may have a huge size, so I want to show the download progress to the user. After some research I found that currently a possible…
guari
  • 3,715
  • 3
  • 28
  • 25
9
votes
4 answers

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…
His
  • 5,891
  • 15
  • 61
  • 82
9
votes
2 answers

Prompting user to save file using a 'Save-as' dialog?

I currently have this code: function download(filename, text) { var pom = document.createElement('a'); pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); pom.setAttribute('download',…
Abdul Jabbar
  • 2,573
  • 5
  • 23
  • 43
1
2 3
34 35