07-15-2015 09:08 AM
Hi,
I'm trying to save my excel test report as a CSV file using ActiveX and I'm having difficulty getting started. I can't find an invoke node method that enables CSV file conversion.
Can anyone shed light on this? See attached screenshot.
Thanks
Solved! Go to Solution.
07-15-2015 09:13 AM
Check out this board:
http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379682/highlight/true#M2391
07-15-2015 09:42 AM
Hi Tim,
I didn't find any example that address how to save .xls to csv with ActiveX. Do you have an example or how to go about doing it?
Thanks
07-15-2015 10:11 AM
Can you create an xls file? If so How complicated is the xls file? Is it multi page? If it is only one page and has no graphs all you have to do is change the extention to csv.
07-15-2015 10:29 AM
Yes it is just one page. My report generation vi creates the .xls file. I don't think changing the extension will make it a csv file. If you try to open it in a text file you will end up with a bunch of unreadable characters. I'm trying to programmatically generate the report as a csv file and the recommended approach on several forums has been to use ActiveX. Do you know how this can be done?
Thanks
07-15-2015 11:31 AM
Are you trying to generate the file in MS Excel and then automatically save it as a csv file?
07-15-2015 11:31 AM
07-15-2015 02:46 PM
Hi Dennis,
What I'm trying to do is very similar to the discussion on the thread below. However, there were no additional details as to how they arrived at a solution. See link.
http://forums.ni.com/t5/LabVIEW/Saving-XLS-file-as-CSV-format-using-LabVIEW-amp-ActiveX/td-p/1056735
07-15-2015 04:16 PM
07-15-2015 09:18 PM
Post some code. Show us you are making a little effort to solve this yourself. In the past month, on this forum, there have been numerous discussions about .CSV and "Excel" files, including posts that basically lay out exactly how to do this (but not why you would want to do so -- if you've already gone to the trouble of creating a true Excel file, meaning a .xls or .xlsx file, which has many more inherent capabilities than a Comma-Separated Text File (which is just a text file, with no additional "bells and whistles"), why create the dumbed-down version?
Post your code, and I'm sure someone will point out how easy it is to use Write Spreadsheet File to create the .CSV version.
Bob Schor