问题描述
csv = New CsvReader(New StreamReader("CSVFileLocation"), True)
Dim fieldCount As Integer = csv.FieldCount
错误消息已添加具有相同密钥的项目。在第二行。如果我将HasReaders更改为False,则没有这样的错误。但是,我无法获得标题。
哪个部分被视为标题
声明,5-jan-2013
04:29:55 PM,印度和中国集团ccn 11 005 357 522,第-1页,共1页,,,,,,,,,,,,, ,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,, br />
,,,,,,,,,,,,,,,, Col A,Col B,Col C,Col D,Col E,Col F ,,,,,,,
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,UU,DSDD,Credits,余额,,,,,,,,, FDF带来YY,585,688.71,FINFISHED
,75,299.90,27,985.63,538,374.44
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers, Bl,05-jan-13.Bal,CV,64,289.11,,,,,FINFISHED
,75,299.90,27,985.63,538,374.44
05-Jan-13至04-Jan-13,Xxxxxxx名称,Dxxxxx.Xccccc,IND,Xxxxxxx 566,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers,Bl,05-jan-13.Bal,REFUND205932,B,LAL TT2 LLLLL FGFGFGFGF, 1,100.00,,,,,FINFISHED
,75,299.90,27,985.63,538,374.44
05-Jan -13至04-Jan-13,Xxxxxxx名称,Dxxxxx.Xccccc,IND,Xxxxxxx号码,00000-000000,Xxxxxxx uP,XN,FGHF日期,FGHF uP,参考,叙述,Ers,Bl,05-jan-13.Bal ,REFUND692248,B,LAL TT8 LLLLL DFDFDFDFD,1,141.00,,,,,FINFISHED
,75,299.90,27,985.63,538,374.44
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers ,Bl,05-jan-13.Bal,REFUND694266,B,LAL TT6 LLLLL FDDF5 KEY REFUND BENGT VON FDFN 694266,50 ,,,,,FINFISHED
,75,299.90,27,985.63,538,374.44
The error message "An item with the same key has already been added." on the second line. If I changed "HasReaders" to "False", there's no such error. But, I'm not able to get the Headers.
which portion is treated as header
Statement,"5-jan-2013
04:29:55 PM",India and China Group ccn 11 005 357 522,Page -1 of 1,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,Col A,Col B,Col C,Col D,Col E,Col F,,,,,,,
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,UU,DSDD,Credits,Balance,,,,,,,,FDFe Brought YY,"585,688.71","FINFISHED
","75,299.90","27,985.63","538,374.44"
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers,Bl,05-jan-13.Bal,CV,"64,289.11",,,,,"FINFISHED
","75,299.90","27,985.63","538,374.44"
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx 566,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers,Bl,05-jan-13.Bal,REFUND205932,B,LAL TT2 LLLLL FGFGFGFGF,"1,100.00",,,,,"FINFISHED
","75,299.90","27,985.63","538,374.44"
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers,Bl,05-jan-13.Bal,REFUND692248,B,LAL TT8 LLLLL DFDFDFDFD,"1,141.00",,,,,"FINFISHED
","75,299.90","27,985.63","538,374.44"
05-Jan-13to 04-Jan-13,Xxxxxxx Name,Dxxxxx.Xccccc,IND,Xxxxxxx Number,00000-000000,Xxxxxxx uP,XN,FGHF Date,FGHF uP,Reference,Narrative,Ers,Bl,05-jan-13.Bal,REFUND694266,B,LAL TT6 LLLLL FDDF5 KEY REFUND BENGT VON FDFN 694266,50,,,,,"FINFISHED
","75,299.90","27,985.63","538,374.44"
推荐答案
这篇关于csv文件错误..........................的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!