-
-
Notifications
You must be signed in to change notification settings - Fork 401
Closed
Description
Excel Type
XLSX
Upload Excel File
MiniExcel Version
1.37.0
Description
public static void InsertSheet()
{
var path = Path.Join(Directory.GetCurrentDirectory(), "output.xlsx");
var usersDataTable = new DataTable();
usersDataTable.Columns.Add("Name");
usersDataTable.Columns.Add("Age");
usersDataTable.Rows.Add("Jack", 25);
usersDataTable.Rows.Add("Mike", 44);
MiniExcel.Insert(path, usersDataTable );
}
可以正常插入新的sheet, 但是打开excel后出现文档修复
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><logFileName>error143440_01.xml</logFileName>
<summary>
在文件“C:\Users\xchen\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net5.0\output.xlsx”中检测到错误
</summary><removedParts>
<removedPart>已删除的部件: 绘图形状.</removedPart>
</removedParts>
</recoveryLog>
Metadata
Metadata
Assignees
Labels
No labels
