各位大侠:
本人从本单位的系统中下载了一个文本文件(见“公司存款明细.txt"),该文本文件能够使用EXCEL进行导入(导入的文件见”从文本导入的EXCEL数据“)
使用以下编码出现报错(见”报错信息.doc"),请教如何解决从此文本文件进行导入。谢谢!
编码如下:
Dim dlg As New OpenFileDialog
dlg.Filter= "文本文件|*.txt"
If dlg.ShowDialog = DialogResult.Ok Then
Dim ip As New Importer
ip.SourcePath = dlg.FileName
ip.SourceTableName = "公司存款明细"
ip.NewTableName ="公司存款"
ip.Format = "Delimited"
ip.Import()
End If