LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I transform the .txt File into .xls file in LabWINDOWS?

Is it easy?I think that saved the data by two types at a time is easier than first saved by .txt file,and then transform into .xls file.
0 Kudos
Message 1 of 2
(2,976 Views)
Hi,

If you are just concerned with writing data into an excel format, you could actually just use FmtFile and format it into a comma separated value (.csv) file. These files are automatically linked to excel, and when you double click the file it will open in excel. If you want to maintain some of the formatting that you see in excel, (i.e., style, colors, fonts) you need to use ActiveX controls to set those properties. I would suggest taking a look at one of the examples that come shipped with CVI that uses Excel. You can open this example up and see how they use the function panel that they created, and you can even use that in your app.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 2
(2,976 Views)