Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: Modifying table corrupts workbook [9403]

$
0
0
Following line of code will delete table column but also corrupt workbook and table will lose formatting:

table.Column(3).Delete(XLShiftDeletedCells.ShiftCellsLeft);
Comments: Delete works as expected: var wb = new XLWorkbook(); var ws = wb.AddWorksheet("Sheet1"); ws.Cell("A1").SetValue("A") .CellBelow().SetValue(1); ws.Cell("B1").SetValue("B") .CellBelow().SetValue(2); var table = ws.RangeUsed().CreateTable(); table.Column("B").Delete( XLShiftDeletedCells.ShiftCellsLeft );

Viewing all articles
Browse latest Browse all 1877

Latest Images

Trending Articles



Latest Images