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.

Thu Oct 01, 2015 10:08 am

Hi,
I am convert word document into html by using Spire.Doc but it will not convert into html ,it gives error as
System.NullReferenceException: Object reference not set to an instance of an object.
at spr?.?(Image A_0)
at spr?.?(DocPicture A_0)
at spr?.?(Paragraph A_0)
at spr?.?(Section A_0)
at spr?.?(Document A_0)
at spr?.?(Document A_0, String A_1)
at spr?.?(Document A_0, String A_1)

Code is:
using System;
using System.Collections.Generic;
using System.IO;
using Spire.Doc;

namespace SSRN
{
class Program
{
static void Main(string[] args)
{
Document document = new Document();
document.LoadFromFile(FileOnLocalMachine + fileName, Spire.Doc.FileFormat.Docx);
htmlFileName = fileName.Replace(".docx", "");
//converting/saving the file to html format in the local path
document.SaveToFile(FileOnLocalMachine + htmlFileName + ".html", Spire.Doc.FileFormat.Html);
}
}
}
Please help.
Thanks,
Mahesh Ingole

mahesh.ingole123@gmail.com
 
Posts: 6
Joined: Thu Oct 01, 2015 9:57 am

Fri Oct 02, 2015 3:38 am

Dear Mahesh,

Thanks for your inquiry.
Please provide us your sample document here, or you can send it to us ( Support@e-iceblue.com) via email.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Oct 09, 2015 8:22 am

Dear Mahesh,

Has your issue been resolved ? If not, could you please provide us your sample document to help us investigate this issue ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Feb 25, 2016 10:19 am

Hello,
The client is not giving permission to us to send or use this document to anywhere, so am not able to give you. But in that document having some graphic images.
As below,
[img]GraphicImage.png[/img]

mahesh.ingole123@gmail.com
 
Posts: 6
Joined: Thu Oct 01, 2015 9:57 am

Fri Feb 26, 2016 2:36 am

Hello,

Thanks for your information.
I insert the image into a document, and then use latest Spire.Doc Pack(hot fix) Version:5.6.27 to convert the document to html. It works fine, please try to use this version.
If this issue still exsits in latest version, please help us reproduce your issue to investigate this issue, you can remove confidential information from the document, and then provide us it here, or you can send it to us(support@e-iceblue.com) via email.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Mar 01, 2016 9:36 am

Hi,

Has your issue been resolved ?
Thanks for your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Apr 05, 2016 12:15 pm

Hello,
This issue was not resolved.
I have taken the spire dll as you above mentioned URL(Spire.Doc Pack(hot fix) Version:5.6.27).
Also, I am attaching one document which has graphical images.



Thank You,
Mahesh Ingole.

mahesh.ingole123@gmail.com
 
Posts: 6
Joined: Thu Oct 01, 2015 9:57 am

Wed Apr 06, 2016 2:24 am

Dear Mahesh,

Thanks for your information.
I converted your document to html with latest Spire.Doc Pack(hot fix) Version:5.6.62, I didn’t encounter throwing exception issue. But Spire.Doc doesn't support the chart when converting at present.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 07, 2016 7:31 am

Hello,
Thanks for your information.
Please update me on it when Spire will support for converting html with chart.


Thank You,
Mahesh Ingole

mahesh.ingole123@gmail.com
 
Posts: 6
Joined: Thu Oct 01, 2015 9:57 am

Thu Apr 07, 2016 1:20 pm

Hello,
When it will be available for us. We have a licence of spire, so we need it.
Because in our 90% document having charts.
We are waiting for solution as early as possible.

mahesh.ingole123@gmail.com
 
Posts: 6
Joined: Thu Oct 01, 2015 9:57 am

Fri Apr 08, 2016 5:57 am

Hello,

I got information from our dev team that they have the plan of converting charts in word document to HTML, but now they haven’t set out to do. We need more time because it is very complicated and difficult. I am sorry that we cannot meet your requirement in a short period of time.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Return to Spire.Doc