06-03-2010 01:51 PM
hi,
is it possible to write spreadsheet to string array but to an added worksheet?
I am currently writing results to the worksheet, but i want to create another worksheet so that i can put the raw data in.
is it possible?
if so, how?
Solved! Go to Solution.
06-03-2010 01:56 PM
In your image you are reading from a spreadsheet, but you talk about writing.
What is your definition of a "worksheet"? It is not clear at all from your post.
06-03-2010 03:53 PM
Sorry,
i guess i attached the wrong picture.
i currently have this.
I read from a spreadsheet.
and analysis certain row and column, then do calculation and write the results to a new spreadsheet.
it is working fine.
but as an option. i wanted to "read all the data from the spreadsheet as the previous image" and then write those data to the same new spreadsheet file but in a different worksheet.
06-03-2010 04:07 PM
So i created a file called results_100603.csv
i want to create a worksheet in that file call Raw Data and copy all the data I read from the file into that worksheet.
06-03-2010 04:08 PM
You can't unless you start using ActiveX functions or the report generation toolkit to communicate with a real .xls spreadsheet file.
You are reading and writing a text file that is formatted in a spreadsheet-like manner with delimiters separating values in a row, and lines of text from each other. Text files have no understanding of data being on one "worksheet" and other data being on another. That is a special feature of the proprietary Excel file format (and other spreadsheet programs as well) that allows Excel to know which data to put on which worksheet. It's not the kind of information you can pass along using the text based File I/O functions of LabVIEW.
06-03-2010 04:42 PM
To simplify what Ravens Fan is saying, the Write to Spreadsheet File function does not write to an Excel spreadsheet. It writes an ordinary text file. To write to an Excel spreadsheet, where you can have different worksheets, you need the Report Generation Toolkit for Microsoft Office, available at your local NI distributor for a hefty sum.
06-03-2010 04:43 PM
06-03-2010 04:44 PM
tbob wrote:To simplify what Ravens Fan is saying,
I thought it was pretty simple to understand in the first place.
06-03-2010 04:46 PM
oh boy.
i know that i need to use activeX.
but i just dont know how to do it.
where can i go to learn activeX.
i went through the excel threads and have created a new worksheet.
but i am having problem writing to that worksheet with my raw data.
06-03-2010 04:56 PM