Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Apr 06, 2022 6:36 am

Hi,

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>&#x2d; iii</p><p>&#x2d; <ol><li><p>Union africaine Test Details</p></li></ol></p>");

            doc.SaveToFile("D:\\Santu\\TestNew.docx");



Html text: "<p>&#x2d; iii</p><p>&#x2d; <ol><li><p>Union africaine Test Details</p></li></ol></p>".

Need your immediate assistance.

Thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Wed Apr 06, 2022 8:39 am

Hello,

Thank you for your inquiry.
I tested your code and did reproduce the issue you mentioned. I have logged the issue into our bug tracking system with the ticket number SPIREDOC-7660. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Tue Jul 12, 2022 9:58 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.Doc Pack Version:10.7 which fixes the issue with SPIREDOC-7660.
Please download the new version from the following links to test.
Website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/10.7.0

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc