1

I would like to ask for your help!!

I'm trying to import CSV file into New Excel file, User will give the input to select which CSV file, and program should import purticular data into new excel file and data should be in user defined order.

So guide me to choose correct platform or language to do it. my sample csv enter image description here

and my expected output is enter image description here

Time string will be Row headers, VarName will be Column headers.

varvalue will be in main data

RJ10
  • 305
  • 1
  • 4
  • 18

1 Answers1

3

There are many ways to do this. One of flexible ways is:

  1. Create a model class for your data. (Each record of your csv file will be an instance of your model)
  2. Create a RDLC report that represent your data in your desired layout and format. There you can arrange your data as in rows, columns , pivots, ...
  3. Read data from your csv file and fill in List and pass it as data source to your report.
  4. Export your report to Excel (and even other supported file formats like .doc, .pdf)

Additional resources:

Community
  • 1
  • 1
Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398