Multiple types in a SaveFileDialog filter
Remove the spaces after the file type: dlg.Filter = “Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif|JPEG Image (.jpeg)|*.jpeg|Png Image (.png)|*.png|Tiff Image (.tiff)|*.tiff|Wmf Image (.wmf)|*.wmf”;
Remove the spaces after the file type: dlg.Filter = “Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif|JPEG Image (.jpeg)|*.jpeg|Png Image (.png)|*.png|Tiff Image (.tiff)|*.tiff|Wmf Image (.wmf)|*.wmf”;
EDIT 2022: Please see other answers regarding File System API In case anyone is still wondering… I did it like this: <a href=”data:application/xml;charset=utf-8,your code here” download=”filename.html”>Save</a> can’t remember my source but it uses the following techniques\features: html5 download attribute data URI’s Found the reference: http://paxcel.net/blog/savedownload-file-using-html5-javascript-the-download-attribute-2/ EDIT: As you can gather from the comments, this does … Read more
When they click a button to download the file, you can add the HTML5 attribute download where you can set the default filename. That’s what I did, when I created a xlsx file and the browser want to save it as zip file. <a href=”https://stackoverflow.com/questions/3102226/path/to/file” download=”renamed.txt”>Download</a> <a href=”downloads/export.xlsx” download=”Data-Export.xlsx”>Download Export</a>