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

Free Support Forum - aspose.com

Inserting bulletted list in Word

Hi,

I have a asp.net application that extracts information from a database and inserts into a Word template. The area I am having trouble with is a have a series of main statements that need to be output at a bookmark if certain criteria are met. Then it is possible for each of these statements to have a series of sub-statements, formatted in a bulletted list, that need to be shown beneath each main statement. The number is main statements and resulting sub-statements are variable in quantity.

For example:

Here is a main statement

  • sub-statement #1
  • sub statement #2

Here is the second main statement

  • sub-statement #1 of the second main statement
  • sub-statement #2 of the second main statement
  • sub-statement #3 of the second main statement

This would then be repeated at various points in the document. Any direction on how to do this would be greatly appreciated.

Thanks,

Bernie

Hi Bernie,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please see the following link to learn how to create a bulleted/numbered list using Aspose.Words:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.listformat.applybulletdefault.html

Hope this helps. Please let me know in case of any issues, I will be glad to help you.

Best regards.

Thank you for your reply. I am unsure how to invoke documentbuilder at a bookmark.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You can use DocumentBuilder.MoveToBookmark method to move cursor to a bookmark. Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/moving-the-cursor.html

Best regards.