How to make a csv file look nice and tidy?

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

How to make a csv file look nice and tidy?

Post by wlederer »

A data trend was exported as a csv file. But after opening it with Excel it looks ugly. Can we format columns, rows, choose proper fonts, colors... using script? Can we recreate original trend as a graphic?
regards, Waldemar

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: How to make a csv file look nice and tidy?

Post by Ron L. »

What you're describing is not an option with the .CSV format. .CSV is simply lists of data without formatting. Once you open the .CSV file in Excel, the formatting you are describing is possible using Microsoft Excel.

In iX Developer 2.0 scheduled for April, we will have a new feature called "Reporting". This will allow you to export your trend data as an .XLS (Excel File) with much of that formatting such as a trend graphic. To do this however, you also will need to use Excel to pre-configure the layout of how your Excel files will export. There will be some documentation and sample Excel files to get you started.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: How to make a csv file look nice and tidy?

Post by wlederer »

Can we create a xls file using script in the current version of iX Developer?

Skylar
Posts: 42
Joined: Wed Jan 04, 2012 11:17 am

Re: How to make a csv file look nice and tidy?

Post by Skylar »

Sure, if you know how to build that type of file with C# code. You might have a look at this library to help you get started:

http://code.google.com/p/excellibrary/

XLS files will not be officially supported until the next release of iX Developer (2.0).
Best Regards,

Beijer Electronics, Inc.
Skylar Walker | Applications Engineer

Post Reply