09-18-2017 07:47 AM
Hello all,
I am working on an application which consists of Excel sheet which is updated with new data for every 10 secs ( approx ). I need to read the sheet continuously and Parallely I need to write& save the data on another destination. As of now leave the writing part.. post your ideas for the reading the sheet continuously & update
09-18-2017 08:50 AM
Are you reading from an actual Excel spreadsheet (.XLS or .XLSX) or are you reading from a CSV, which is often referred to as a spreadsheet file? These are two different file formats and will require different methods.
CSV can be read using the "Read from Spreadsheet File" VI on the File I/O palette.
XLSX can be read using the Report Generation Toolkit, if you have it installed and activated.
09-18-2017 08:53 AM
There are multiple steps and situations that you have not described, and we cannot look at the code you failed to post. Here are some of the issues:
Bob Schor
09-21-2017 04:37 AM
ya i am having ( .XLS ) excel sheet . i am using Report generation for that . now post your views .
09-21-2017 05:08 AM
Hi,
I don't sure that it's advise to read and write in same time in a file.
you can create a copy of your (.xls) file with a quantity of data kwnon and delete it when you will finish to read data inside. repeat this opération to avoid reading and writing data in a same file.
Kudos are welcome.
09-21-2017 05:43 AM
thank you .
i am also in the same strategy to do this.
but i have an another doubt in this
If i am deleted cells in last few rows (using report generation toolkit ) . after that also cells are with border . so i need the cells with no border ( if dont have a data )
. plz post your idea for this
09-21-2017 08:01 AM
@Mrtechie wrote:
ya i am having ( .XLS ) excel sheet . i am using Report generation for that . now post your views .
Yes sir, right away, sir!
As several of us have told you, you do not want to be reading from and writing to the same Excel File repeatedly. You can (with a fair amount of skill, experience, and effort) write a routine to "manipulate" an Excel Worksheet, changing isolated cells, but you run the risk of "making a real mess of your data" in the process. Particularly for a beginner, or someone who doesn't quite know what they are doing, the "Get the Data and Close Excel", "Use the Data", and "Save the Data and Close Excel" method we've been advocating is what I, anyway, strongly urge you to try.
Bob Schor
09-21-2017 08:39 AM
And going the open, write, close, open, read, close, repeat ... route will be slow, EXCEL doesn't open and close quickly.
What are you trying to do that requires you write to the spreadsheet and read it in parallel? Explain the concept and we might be able to offer alternative concepts.