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

Free Support Forum - aspose.com

Incorrect variable count?

Hello,



I evaluate your componet for using in our project. Is it possible that by using the InsertDocument method in DocumentBuilder the variables from the inserted document not transfer to the root document?



Best regards

Michael

Hi Michael,


Thanks for your inquiry. You can simply remove all variable fields from ‘Test 2.docx’ before ‘InsertDocument’ method call. For example:

FieldDocVariable v4 = (FieldDocVariable)doc2.Range.Fields[0];

v4.Remove();


I hope, this helps.

Best regards,