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.

Mon Nov 15, 2021 7:01 am

Hi Team,

We are planning to use spire.doc to convert word to html. We have few charts in the word, is it possible to convert those charts to image in html?

Regards,
Sabaresh

sabaresh
 
Posts: 2
Joined: Mon Nov 15, 2021 6:55 am

Mon Nov 15, 2021 8:08 am

Hello,

Thanks for your inquiry!

Sorry that both our Spire.Doc for net and Spire.Doc for Java could not save the charts in the Word document to image when converting the Word to HTML now. Which language (Java or .Net) are you using? Once this feature is implemented, we will notify you of the corresponding version. Sorry for the inconvenience caused.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Nov 15, 2021 9:10 am

We are using dot net. Is there any other alternative solution which we can try?

sabaresh
 
Posts: 2
Joined: Mon Nov 15, 2021 6:55 am

Mon Nov 15, 2021 9:42 am

Hello,

Thanks for your feedback!

As a temporary method, you can also convert the Word file to PDF format, and then convert the PDF to HTML file with our Spire.Office for Net. Please reference to the following code.

Code: Select all
            Document document = new Document(path);
            MemoryStream stream = new MemoryStream();
            document.SaveToStream(stream, Spire.Doc.FileFormat.PDF);  //save the word to pdf

            PdfDocument pdf = new PdfDocument(stream);
            pdf.SaveToFile("tohtml.html", Spire.Pdf.FileFormat.HTML);


Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Fri Apr 28, 2023 7:41 am

Hi,

Thanks for your patience.
Glad to inform you that we just released Spire.Doc 11.4.12 hotfix, which has implemented this new feature SPIREDOC-3430, please download the new version from the following links and have a test.
Website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget: https://www.nuget.org/packages/Spire.Doc/11.4.12

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 999
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Doc