I need to convert a CSV file to XLSX.
The content of the 'fruits.csv' file is as follows:
ITEM;REFERENCE;FRUIT;UNITS;PRICE
1;E015;PEAR;24;100
2;E024;APPLE;48;200
3;E012;ORANGE;24;100
4;E032;PINEAPPLE;12;150
5;E018;LEMON;24;80
6;E045;STRAWBERRY;24;120
The problem I have is with the content of the 'REFERENCE' column:
* By default,
CSVParams.DetectContentType := true;
and when opening the converted file 'fruits.xlsx', it shows a value of zero. I attach image.
* When changing
CSVParams.DetectContentType := false;
and when opening the converted file 'fruits.xlsx', it correctly shows the values, but now the cells containing numbers are full of warnings. I attach image.
I appreciate the help you can give me.