Free Support Forum - aspose.com

Problems importing HTML To Word with bullet points

Hi,

I’ve got the following missrendering to word document during importing HTML to Aspose.Words.Document using Documentbuilder:

Here ist the example code:

Document docImport = new Document();
Aspose.Words.DocumentBuilder db = new Aspose.Words.DocumentBuilder(docImport);
db.RowFormat.AllowAutoFit = true;
db.InsertHtml(File.ReadAllText(“html_listpoints.txt”);
docImport.Save(html_listpoints.doc, SaveFormat.Doc);

I attached images about the problem and html source code and the generated document.

Is this a bug or do you know workaround?

Greetings
Christian

Hi Christian,

Thanks for your request. As I can see, you are using Aspose.Words 9.7.0. I checked the issue with the latest version of Aspose.Words and could not reproduce it. Please try using the latest version, you can download it from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

Hi,

thanks a lot. I wanted to test with the new versions this morning, but downloading didn’t work.

No, I was able to download the new versions and - you are right - bullet lists are rendering in correct style.

Greetings
Christian