以下是一段html
<table style="width:auto;"><tbody><tr><th colSpan="1" rowSpan="1" width="auto"></th></tr></tbody></table><p><br></p>
调用AddFromHtml方法报错
can't parse coordinate
Presentation ppt = new Presentation();
IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(50, 50, 400, 100));
shape.TextFrame.Paragraphs.Clear();
string htmlText1 = "<table style=\"width:auto;\"><tbody><tr><th colSpan=\"1\" rowSpan=\"1\" width=\"auto\"></th></tr></tbody></table><p><br></p>";
string htmlText2 = "<p><span style=\"color:rgb(225,60,57);\">aaaaa</span></p>";
shape.TextFrame.Paragraphs.AddFromHtml(htmlText1);
shape.TextFrame.Paragraphs.AddFromHtml(htmlText2);
ppt.SaveToFile("output.pptx", FileFormat.Pptx2013);