We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error in insertHTML when html contains a bookmark to #_ftnref

TT44225:

Hello,

We discovered a problem when inserting html using the InsertHTML function when using the following html:






[11]





And the following code:

Dim objBuilder As New Aspose.Words.DocumentBuilder()
Using objReader As New IO.StreamReader("html.html")
objBuilder.InsertHtml(objReader.ReadToEnd())
End Using
objBuilder.Document.Save("c:\temp\doc.doc", Aspose.Words.SaveFormat.Doc)Dim objBuilder As New Aspose.Words.DocumentBuilder()
Using objReader As New IO.StreamReader("html.html")
objBuilder.InsertHtml(objReader.ReadToEnd())
End Using
objBuilder.Document.Save("c:\temp\doc.doc", Aspose.Words.SaveFormat.Doc)

The method fails with an object reference error. The problem seems to be the a. When changing the href, the problem does not occur. Can you reproduce the issue and provide us with an issue number?

Regards

Paul Vrugt
Sr Software Engineer
Infoland BV

Hi Paul,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-10343. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.