0

Inserting document with placeholders and maintaining headers/footers

Hello, I am trying to creating loop through some array variables containing document data. 

<<if [AppendixA != “”]>>

<<foreach [Appendix in AppendixA]>>

<<doc [Appendix.Document] -build >>

<</foreach>>

<<else>>

<</if>>

 

<<if [AppendixB != “”]>>

<<foreach [Appendix in AppendixB]>>

<<doc [Appendix.Document] -build >>

<</foreach>>

<<else>>

<</if>>

 

<<if [AppendixC != “”]>>

<<foreach [Appendix in AppendixC]>>

<<doc [Appendix.Document] -build >>

<</foreach>>

<<else>>

<</if>>

 

<<if [AppendixD != “”]>>

<<foreach [Appendix in AppendixD]>>

<<doc [Appendix.Document] -build >>

<</foreach>>

<<else>>

<</if>>

 

However, the final document does not have its placeholders populated and I am missing the headers/footers from the documents. Is there a way to achieve both within the foreach?

1 comment

Please sign in to leave a comment.