save-as

Programmatically convert SVG shapes to paths (lineto, moveto)

坚强是说给别人听的谎言 提交于 2020-01-01 09:04:48
问题 I have an SVG file coming from Inkscape, Illustrator, or any other application. I want to convert the shapes to lineto , moveto , curveto format. What I want is something like: ./Appname svgfile outfilewithpath I will give the SVG file as an argument, then my application will convert the object into the respective paths. 回答1: Inkscape has a command-line interface. Use the Inkscape man page along with the verb source for reference: The ObjectToPath verb converts an object to a path: inkscape

Struggling to save as xlsx file in VBA

六月ゝ 毕业季﹏ 提交于 2020-01-01 05:42:35
问题 Im new to VBA so any help is appreciated. Im having a problem with my SaveFile sub. This actually allows me to save the file but when I try to open it again Excel doesn't recognize it as an Excel file. In fact if I right click the file from my desktop and check the properties, the type of file is "File". I've read up on the formatting stuff but cant get this file to save as just an xlsx format. I was able to get a macro-enabled excel file to work properly but that's not what I want. My code

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

人盡茶涼 提交于 2019-12-28 17:31:52
问题 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 Dim CurrentWorkbook As String Dim CurrentFormat As Long CurrentWorkbook = ThisWorkbook.FullName CurrentFormat = ThisWorkbook.FileFormat SaveToDirectory = "\MyFolder\" Application.DisplayAlerts = False Application.AlertBeforeOverwriting = False Sheets(

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

↘锁芯ラ 提交于 2019-12-25 03:17:13
问题 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; xmldoc.loadXML(responseText); // responseText is xml returned from ajax call //apply the xslt var xsldoc = new ActiveXObject("Microsoft.XMLDOM"); xsldoc.async = false;

How to save a text file (CSV) with UTF-8 without BOM encoding in VBA (Excel)?

烂漫一生 提交于 2019-12-24 04:22:17
问题 So this was my initial question. The answer to my question below, seems to be that the only solution to get UTF-8 (and UTF-8 without BOM) encoding, is to use the ADODB.Stream object. The answer to my new question in the subject line is posted as a code. I am sitting here and trying to Save an Excel sheet as a .CSV -file with a VBA macro. However, I am wondering if it matters whether I use ADODB / ADODB.Stream or just .SaveAs Fileformat:=xlCSV . I have tried to Google it, and it seems like I

How to save a text file (CSV) with UTF-8 without BOM encoding in VBA (Excel)?

一个人想着一个人 提交于 2019-12-24 04:21:03
问题 So this was my initial question. The answer to my question below, seems to be that the only solution to get UTF-8 (and UTF-8 without BOM) encoding, is to use the ADODB.Stream object. The answer to my new question in the subject line is posted as a code. I am sitting here and trying to Save an Excel sheet as a .CSV -file with a VBA macro. However, I am wondering if it matters whether I use ADODB / ADODB.Stream or just .SaveAs Fileformat:=xlCSV . I have tried to Google it, and it seems like I

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

冷暖自知 提交于 2019-12-23 14:04:18
问题 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 markup? If not, is there a JavaScript solution? 回答1: Use the download attribute: <a download='FileName' href='your_url'> Live example on html5-demos.appspot.com/.... Currently works on Chrome, Firefox, Edge, Opera, and desktop Safari but not iOS Safari

HTML: how to create a “save as” button?

社会主义新天地 提交于 2019-12-18 12:28:25
问题 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 the disk. There is a solution exists using Javascript as far as I know, but it only works for IE. See here: link text 回答1: You could have the link run a server

Save as an Excel file embedded in another Excel file

雨燕双飞 提交于 2019-12-18 09:17:22
问题 I want to manage with VBA an Excel file embedded in another Excel file. I can find many results with .docx documents, but I stuck with a .xlsx one. My last try is using OLE objects, but stuck at the line "SaveAs" (Error 1004). Here is the weird part: when I start debugging, or if I run the program step by step using F8, it did run, but no file were saved... I called my OLEObject "TEST" for this example: Sub testOLE() mPath = ActiveWorkbook.Path For Each obj In Worksheets(1).OLEObjects If obj