Hi,
I want to convert text file into excel. I have succeed to convert it but i have few problem.
For the first 3 column name is combine into 1 column which i want it to be 3 different column. Then, after the first column suddenly there is few more new column insert
I think that this is the only way is i add one template file that has old data. So i need to replace the new data with the new text file thus my text file that converted into excel can follow the template that i want
May i know how to make the text file follow my previous template so that when the text file convert into excel it will follow as i want it to be?
@Nur_Amin
There could be issue with delimiter in that text file, which is why columns are getting combine.
Is it possible for you to give us a sample Input and output data ?
so your requirement is limited to 2 rows only or there could more than 2 rows as well…?
If more than 2 rows, what should be done…? Ignore rest of rows ?
{String.Join("",(from rw in dt_Input select x =rw(0).ToString)),String.Join("",(from rw in dt_Input select x =rw(1).ToString)),String.Join("",(from rw in dt_Input select x =rw(3).ToString))}
These examples are for 3 columns only. If required you can increase the columns.