FormFields- Comments- table columns

Hello,

I am working on moving to aspose and have several questions about form fields, comments, and table columns.

  1. FormFields

What is the best way to create a form field and append it to the table cell range?

  1. Comments

What is the best way to add a comment to the cell range, and mark programatically whole range as comment?

  1. What is the best way to take count of table columns?

Thanks for help,
–Oleh

Hi
Thanks for your request.

  1. The best way to insert a form field is using DocumentBuilder. Please follow the link for more information:
    https://docs.aspose.com/words/net/working-with-form-fields/

  2. Please follow the link to learn how to create comments using Aspose.Words:
    https://reference.aspose.com/words/net/aspose.words/comment/
    If you need to associate comment with a selected range, you should use CommentRangeStart and CommentRangeEnd nodes to mark the selected range.

  3. Actually there is no column concept in MS Word tables. By Microsoft Word design, rows in a table in a Microsoft Word document are completely independent. It means each row can have any number of cells of any width. However, you can suppose then number of cells in the first row of the table is a number of columns in the table.

Best regards,