Hi Raviranjan,
Thanks for sharing the document.
raviranjankumarsinha:
I am attaching the sample document file which should be create from the template. Here all data is dynamic. So basically i want to have some template so i will pass data and it should create dynamic doc file.
In your case, I suggest you please use the Mail Merge feature. Please read following documentation links for your kind reference.
https://docs.aspose.com/words/net/working-with-document/
https://docs.aspose.com/words/net/mail-merge-and-reporting/
raviranjankumarsinha:
Here i want to create even TOC from template. File also contains Table which contains dynamic data with dynamic rows.
You can insert TOC and create Table with dynamic data by using Aspose.Words. Please check following documentation and forum links.
https://docs.aspose.com/words/net/working-with-tables/
https://forum.aspose.com/t/51128
raviranjankumarsinha:
Also if you see Header 3, this contains different type of input so it should also come from html (like Input Box, Dropdown, Checkbox, Radiobutton,…).
Placing form fields into the document via code is easy. DocumentBuilder has special methods for inserting them, one for each form field type. Use DocumentBuilder.InsertTextInput, DocumentBuilder.InsertCheckBox or DocumentBuilder.InsertComboBox to insert form fields into a document. Please read more detail about Form Fields from here:
https://docs.aspose.com/words/net/working-with-form-fields/
https://reference.aspose.com/words/net/aspose.words.fields/formfield/
raviranjankumarsinha:
As i mentioned about xsd file, because i can put if condition, loop for generating dynamic HTML file (if Aspose does not support xsd file). So can you let me know is it possible or not to generate from HTML(or any other template), if it is possible then what all limitation(s) are there?
Aspose.Words does not support xsd file format. You can generate the same document (sample.docx) by using Aspose.Words except form fields (the radio button), please check the detail from above Form Field documentation link.
Hope this answers your query. Please let us know if you face any issue while creating document with any section like header/footer, TOC, form fields, table etc.