I am trying to append some html which I've received my other system and Spire throws Stack Empty Error. I'm using latest version of Spire.Doc. Could you please help me on this?
- Code: Select all
var doc = new Spire.Doc.Document();
var section = doc.AddSection();
section.PageSetup.PageSize = PageSize.Letter;
var table = doc.LastSection.AddTable(false);
var row = table.AddRow(false, 4);
var paragraph = row.Cells[0].AddParagraph();
paragraph.AppendHTML("<p>- iii</p><p>- <ol><li><p>Union africaine Test Details</p></li></ol></p>");
doc.SaveToFile("D:\\Santu\\TestNew.docx");
Html text: "<p>- iii</p><p>- <ol><li><p>Union africaine Test Details</p></li></ol></p>".
Need your immediate assistance.
Thanks,
Santhoshi.