Please see attached “DocTemplateVariableScopeIssue.docx” document template which declares a “myHeaderVariable” variable in the document header to be used with the Linq Reporting Engine inside the document. In version 21.7 of Aspose.Words, this variable could be used in the body of the document without a problem, see attached, generated document “DocTemplateVariableScopeIssue_Generated_v21.7.docx” and screenshot “DocTemplateVariableScopeIssue_Generated_v21.7.png.” In version 21.10 of Aspose.Words, this functionality broke, so we have many document templates that do not work anymore. See attached, generated document “DocTemplateVariableScopeIssue_Generated_v21.10.docx” and screenshot “DocTemplateVariableScopeIssue_Generated_v21.10.png.” (generated from the same “DocTemplateVariableScopeIssue.docx” document template).
Can you please fix this bug or suggest a workaround.
DocTemplateVariableScopeIssue.docx (13.6 KB)
DocTemplateVariableScopeIssue_Generated_v21.7.docx (9.9 KB)
DocTemplateVariableScopeIssue_Generated_v21.7.png (4.8 KB)
DocTemplateVariableScopeIssue_Generated_v21.10.docx (9.9 KB)