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 Sep 09, 2020 6:02 pm
Receiving the error "Object reference not set to an instance of an object" on converting a .doc file into HTML.
Seems to be file specific, but nothing seems to be different about the files throwing the error.
- Code: Select all
using (Document document = new Document())
{
document.LoadFromFile(absolute-file-path);
document.HtmlExportOptions.ImageEmbedded = true;
document.HtmlExportOptions.CssStyleSheetType = CssStyleSheetType.Internal;
document.SaveToFile(absolute-destination-path + ".html", Spire.Doc.FileFormat.Html);
}
-
delwyn.pinto
-
- Posts: 5
- Joined: Wed Sep 09, 2020 1:19 pm
Thu Sep 10, 2020 3:52 am
Hello,
Thanks for your inquiry.
Please share your input file with us so that we can investigate your issue accordingly. You can send it to us (
support@e-iceblue.com) via email. Thanks in advance for your assistance.
Sincerely,
Rachel
E-iceblue support team
-
rachel.lei
-
- Posts: 1571
- Joined: Tue Jul 09, 2019 2:22 am