Import excel sheet on IX

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
charlyprouteau
Posts: 33
Joined: Wed Jan 23, 2013 2:01 am

Import excel sheet on IX

Post by charlyprouteau »

Dar Sir,

Is a way to import excel sheet to IX?
My problem is :
I need fill datas on D1 = "colums A, line 1" and D2 = "colums A, line 2" in Microsoft Excel.
Then, I need to import this excel file into IX, and affect D1 to TAG1 and D2 to TAG2.
Have you got an idea about this?

Thanks for your answer.

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Import excel sheet on IX

Post by mark.monroe »

You can import/export tags from a csv file. CSV files can be read/writen to by Excel.
Snap 2013-04-18 at 08.38.51.jpg
Snap 2013-04-18 at 08.38.51.jpg (27.21 KiB) Viewed 9452 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

charlyprouteau
Posts: 33
Joined: Wed Jan 23, 2013 2:01 am

Re: Import excel sheet on IX

Post by charlyprouteau »

It is not this function I want to do.
I want to import excel sheet when the project runs, and affect value (located on the excel sheet) to a tag.
For information, the project will run on a PC.
example : tag1 will take value of D4 case on the excel file.
thanks for your answer

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Import excel sheet on IX

Post by mark.monroe »

You would have to write your own C# script to open up a CSV file and then read the values into the tags. You can take a look at this forum post and the Script_database_export project.

The project has come code in it that will give you an idea of how to work with files in C#.

There is nothing in iX that will allow you to do this automatically.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

Re: Import excel sheet on IX

Post by Edmund »

What file extension will your excel sheet have (*.xls, *.xlsx, *.csv)?

If you have a example of it, it would be easier.
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

Post Reply