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

Free Support Forum - aspose.com

Form Fields name

I have some word templates with many form fields.
I need to merge various templates and to fill them .
In the resulting document the same field ( ex.: customer name, product price ) is repeated in different pages.
In MS Word fields can’t have the same name.
Must I have different field names with Aspose too ?

Thanks
Moreno.


This message was posted using Page2Forum from Form Fields in Aspose.Words - Aspose.Words for .NET
<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0pt 5.4pt 0pt 5.4pt; mso-para-margin:0pt; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:SimSun; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

Hi Moreno,

Thanks for your inquiry. Name of form fields in MS Word is specified using bookmarks. Since document cannot contain duplicated bookmarks, document also cannot contain form fields with the same name.

Upon saving, Aspose.Words just remove duplicated bookmarks from the document. So when form field with duplicated name occurs, Aspose.Words will remove its name (bookmark), but form field will be still there. For example, see the attacked document. First two bookmarks have names, and second two bookmarks do not.

Best regards,