我使用HttpContext从数据库中导出数据,格式为表、tr和td。我想读取同一个文件并转换成数据表。privateDataTableGetTableFromExcel(){DataTabledt=newDataTable();try{if(exclFileUpload.HasFile){stringFileName=Path.GetFileName(exclFileUpload.PostedFile.FileName);stringExtension=Path.GetExtension(exclFileUpload.PostedFile.FileName);stringFolder
我正在开发一个带有MySQL数据库的网络应用程序(ASP.NET)。当我尝试通过此应用程序上传Excel文件(.xlsx)时,我没有遇到任何问题。当文件超过24904条记录时,问题就开始了。此时我收到以下错误:Thistablecontainscellsthatareoutsidetherangeofcellsdefinedinthisspreadsheet.并写入前24904条记录。我尝试将负载分成多个批处理,但没有成功。有什么想法吗?DimconnExcelAsNewSystem.Data.OleDb.OleDbConnection(conStr)DimcmdExcelAsNewS
我正在开发一个带有MySQL数据库的网络应用程序(ASP.NET)。当我尝试通过此应用程序上传Excel文件(.xlsx)时,我没有遇到任何问题。当文件超过24904条记录时,问题就开始了。此时我收到以下错误:Thistablecontainscellsthatareoutsidetherangeofcellsdefinedinthisspreadsheet.并写入前24904条记录。我尝试将负载分成多个批处理,但没有成功。有什么想法吗?DimconnExcelAsNewSystem.Data.OleDb.OleDbConnection(conStr)DimcmdExcelAsNewS