Merged Document result

Hi,
Im using aspose.words 10.5 to merge fields from a word document. Is there an option to hide variable in the resulting documents? Users can view variable in word when they activated the dev mode.
The problem with this is that the user can change a variable-result format style, but the change is lost when he re-open the document, since variable are processed. I want to save the raw document with variable-result only, how?
Hope this is clear, and sorry for my bad english.

Hi Claude,
Thanks for your inquiry. Please accept my apology, I could not get your requirements. Could you please share some more information and sample input/output document? So we will look into the requirements and suggest you solution accordingly.
Best Regards,

Ok, its not easy to explain.
I have a template document, this document have alot of IF conditions and Field.
The merged document show the result, so Field are replaced with values (FieldValue), this is working fine. But when we open the result document and we change the format-style of a FieldValue, the format-style is lost after save/re-open. If we change the format-style of a simple texte (not a FieldValue) then its working fine.
This is a problem, because sometime the user want to edit the result document and change the style of only one FieldValue and its not saved.
When the user do ALT+F9 in the word document, the FieldName are displayed with all If Conditions. Is there a way to change how the result document is saved, so value are embeded in the result document without the conditions and FieldName, so ALT+F9 do nothing and format-style is applied properly?
I think this is possible, because when we use the mail-merge from MS-Access for example, there no way to go back to the FieldName in the result document with ALT+F9.
Hope this help and a solution exists.
Tank you.

Hi Claude
Thanks for the extra information. Please check the following article, it describes how you can replace fields with static text. You can use ConvertFieldsToStaticText() method to replace Fieldtype.Fieldif with static values and achieve your desired results.
https://docs.aspose.com/words/net/updating-and-removing-a-field/
Please feel free to contact us for any further assistance.
Best Regards,