本帖最后由 Richard.Huang 于 2024-5-16 10:58 编辑
产品:GcExcel
版本:V7.0.3
调研编号:DOCXLS-10364
模板如图所示:
删除代码如下:
// 垂直还原 table
IWorksheet worksheet8 = workbook.getWorksheets().get("Sheet8");
IRange range2 = worksheet8.getRange("A3:A7");
IRange rowRange2 = range2.getRows();
rowRange2.delete(DeleteShiftDirection.Up);// 运行异常Exception in thread "main" java.lang.IllegalStateException: Invalid operation. at com.grapecity.documents.excel.I.aU.b(Unknown Source) at com.grapecity.documents.excel.I.aU.a(Unknown Source) at com.grapecity.documents.excel.dF.a(Unknown Source) at com.grapecity.documents.excel.ci.delete(Unknown Source) at org.example.Main.main(Main.java:32) |
|