Hy everyone i d like to ask some help for the next one .
i want to loadt a txt file into excel in c# with the workbooks.opentext method ! it runs well but in the text data there is some numbers wich contains "," character and thats the main separator of the whole text let me show u
'1200000','29,8','DUPAREC PAPÍRGYŰJTŐ ÉS FELD. KFT','
and the problem is in the second column .
Is there anyone who have any idea how to avoid this problem? my code is the next one
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
int[,] fieldInfo = new int[4, 2] { { 1, 2 }, { 2, 4 }, { 3, 2 }, { 4, 2 } };
object oFieldInfo = fieldInfo;
xlApp = new Excel.Application();
object missing = System.Reflection.Missing.Value;
xlApp.Workbooks.OpenText(
filepath,Excel.XlPlatform.xlWindows,
1,
Excel.XlTextParsingType.xlDelimited,
Excel.XlTextQualifier.xlTextQualifierNone,
false,
false,
false,
true,
false,
false,
missing,
oFieldInfo,
missing,
missing,
missing,
missing,
missing
);
Best regards !
Smith!