Hi,
"Merged cells found" Exception occurs when resplitting merged cells in table.
Is there any way to re-split cells after merging?
Environment
- Windows 11
- WPF(.NET 6.0)
- Spire.Office 8.1.1
var presentation = new Spire.Presentation.Presentation(templatePath, FileFormat.Pptx2013);
this.slideSize = presentation.SlideSize.Size;
double[] widths = new double[] { 100, 100, 150, 100, 100 };
double[] heights = new double[] { 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15 };
ITable table = presentation.Slides[0].Shapes.AppendTable(this.slideSize.Width / 2 - 275, 80, widths, heights);
table.MergeCells(table[0, 0], table[1, 0], false);
table[0, 0].Split(1, 2);
presentation.SaveToFile(@"C:\Users\user\Downloads\test.pptx", FileFormat.Auto);
presentation.Dispose();