Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

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

Return to Spire.Doc