Kan*_*kan 5 c# oledb excel export-to-excel
我正在尝试将一些数据导出到 Excel。我正在使用 OLEDB 12。连接字符串如下所示:
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 8.0;HDR=YES;'"
Run Code Online (Sandbox Code Playgroud)
我使用 INSERT 查询。但是每当目标列中的数据超过 255 个字符时,就会出现异常。
Exception Details: System.Data.OleDb.OleDbException: The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
Run Code Online (Sandbox Code Playgroud)
SO上有类似的帖子:Excel无法插入超过255个字符?但它不在 c# 中,
我还提到了http://support.microsoft.com/kb/213841并没有得到任何解决方案。
请帮忙。
| 归档时间: |
|
| 查看次数: |
2328 次 |
| 最近记录: |