LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy data from an excel file to an system window

Hi

I just want to copy the data from an excel file to an active system window, for example I have details of some persons contains their names,designations,age and some other details in an excel sheet, now my requirement is to copy all these data into a system window like IRCTC browser etc.please provide any suggestions...?

Thanks in advance.

0 Kudos
Message 1 of 7
(2,776 Views)

Hey nk,

 

Have you tried using the read from spreadsheet vi? Looks like the snippet below. If you want something a bit more tailored to your needs you can use the read text file vi's and do some string manipulation. I would try with the function I have posted below first, and see how you get on. If you are struggling to find it or the read from text file functions they are located in the programming pallet under file I/O.

Read speadsheet.png

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 2 of 7
(2,643 Views)

Hi,

thanx for your reply, but my requirement is copy the entire data from Excel or notepad to a system window like any tab browse by internetexplorer. I mean i just want to copy the data in to a internet external window like IRCTC window but not in to labview frontpannel. Please suggest me for doing like that.

Thanks in advance.

0 Kudos
Message 3 of 7
(2,630 Views)

Hi nk,

 

You could read the data into labview and convert into XML and store in a database, you could then access the database through your webpage... This forum is used to for labview support, if your not using LabVIEW then I think you've come to the wrong place.

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 4 of 7
(2,623 Views)

Hi,

Iam using LabVIEW 8.5 for developing my application and iam getting data from my excel to labview frontpannel and iam storing that data into a global variable, now i want to copy that data in to some other window which was opened through LabVIEW systemexe function. As per your suggestion now iam trying with Databases. I ll come back when iam facing any troubles in that.

Tahnks for your suggestion.

0 Kudos
Message 5 of 7
(2,614 Views)

Hey Nk,

 

Sorry I was a bit confused as to what you were trying to do with your last post, so basically you are trying to port your data from labview into another application which is also run in labview? Why not try then transferring the data to the other application via TCP/IP try this link.

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 6 of 7
(2,608 Views)

have you any code you have tried if so could you post it plse? I assume your data is in excel native not csv so I dont think read spreadsheet.vi will work. If you search the examples on the website there are some good examples of using the excel activex. Not sure on passing the data back out to explorer but i would assume similar methods could be employed.

 

Hopeit gets you started

 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 7 of 7
(2,606 Views)