Free Support Forum - aspose.cloud

Getting Multilevel Lists to work in Word output via HTML


#1

Hi,

We’ve been trying to get multi-level lists to work in word document while converting it from HTML but unable to achieve desired results.

I am attaching 2 samples of desired word output which we would like to get post converting it from HTML.
desired_output.zip (21.9 KB)

Could you help us with the best approach on how to form the HTML to get the desired output.

Thanks


#2

@RBIEGTechTeam

Thanks for your inquiry. We are looking into your requirements and will share our findings with you soon.


#3

@RBIEGTechTeam

Please find attached sample input HTML and output DOCX file and confirm whether it fulfills the requirement. We have exported your desired DOCX to HTML for the sample input HTML file.
desire_output_aspose.zip (5.9 KB)


#4

Hi,

That HTML input would not be suitable, because it is not actually creating an ordered list in the word document.

We have been able to solve the issue of indentation using multilevel ordered lists, however I have found a bug whereby aspose is unable to correctly generate the numbering for multilevel ordered lists. This is an urgent issue for us.

Please see attached zip file. The HTML file is an example of what we are trying to send, and can be seen to render correctly in a browser. The screenshot is how this HTML looks in a browser. The DOCX file is the file generated by aspose when we tried to convert that HTML file.
As you will see, the multi level list numbering is not correct. Where the numbers should be 3.1, 3.2, 3.3 etc they are coming out as 1.1, 1.2, 1.3 etc.

Setting the numbering manually does not seem to be an option, because it results in inconsistent formatting which is impossible to align when the HTML input has been dynamically generated. aspose_multilevel.zip (18.6 KB)


#5

@RBIEGTechTeam

We have tested the scenario and noticed the reported issue of incorrect number of second level list. We have logged a ticket WORDSCLOUD-723 in our issue tracking system for further investigation and rectification. We will notify you as soon as the issue is resolved.