Insert custom field code in word document

Hi there,
Can we insert some custom field code in the word document using Aspose? Our goal is to insert field code in the word document on some text.

Thanks.

Hi Praneeth,

Thanks for your inquiry. It would be great if you please share some more detail about custom fields. You can insert valid fields using DocumentBuilder.insertField method into the document.

Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate, how you want your final Word output be generated like. We will then provide you more information on this along with code.

Hi Tahir,
Based upon our offline discussion (attached the transcript), is there any update in the same?

Thanks.

Hi Praneeth,

Please accept my apologies for for late response.

Please note that Aspose.Words mimics the same behavior as MS Word does. Please read about MS Word fields from here:
http://office.microsoft.com/en-001/word-help/field-codes-in-word-HA010100426.aspx

Please read about inserting custom properties with fields from here:
http://word.tips.net/T001498_Inserting_Custom_Properties_with_Fields.html

I have attached a sample document with this post. This document have a custom property ‘CustomProperty’ with value ‘Test’. If you want the same shared in above link, you can achieve this using Aspose.Words.

Unfortunately, your query about custom field code is not clear. It would be great if you please share what exact you want to achieve using Aspose.Words. We will then provide you more information about your query.