Free Support Forum - aspose.com

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?

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

3. 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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/form-fields-in-aspose-words.html

2. Please follow the link to learn how to create comments using Aspose.Words:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.comment.html

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,