Hello,
We are using aspose.words in our web application to output a bunch of multiple choice questions to a word document.
Our aim is to produce a numbered list in the word document with each question being a single entry. The set of answers to a multiple choice question is a sub-list numbered alphabetically. The client should be able to click on a single question number or answer letter and have all of the question numbers/answer letters selected, in order for them to easily adjust formatting for all of the question numbers/answer letters in the document.
To acheive this, we are using the builder.InsertHtml() method to insert the questions and answers to each question into the document as HTML ordered lists. A snippet of example HTML is shown below:
- Question One
- Answer One
- Answer Two
- Answer Three
- Question Two
- Answer One
- Answer Two
- Answer Three
When the document is produced, the HTML ordered lists render as Word numbered/lettered lists, as desired. We are able to click on any question number and all of the question numbers in the document are selected. However, when we click on a answer letter, only the answer letters for that particular question are selected, not all of the answer letters in the document.
When we ouput the raw HTML and then open the HTML document via Microsoft Word, clicking on one answer letter selects all of the answer letters in the document - the desired behaviour.
The attached sample document shows the output we are trying to acheive, with the desired behaviour when an answer letter is clicked.
Your help in acheiving this desired behaviour is much appreciated.
Regards,
Michael