Question

SOFTTECH A.Ş.
TR
Last activity: 3 Oct 2025 17:21 EDT
how i can generate multiple images into word document at runtime by setting pegarefconfig in word document template?
we want image type attachments of a case to be printed in the word document by generating it from a word template binary rule. Currently in our word template we tried to do this via locating a Correspondence rule named WordBranchExeActivityPic in which we have set a pagelist including data work attach stream content inside :<pegarefconfig={"name":"WordBranchExeActivityPic","type":"C"}>
And here is the source html code of correspondence rule :
<ul><pega:foreach name=".Test1">
<li><img src="data:image/jpg;base64, <pega:reference name="$THIS.pyAttachStream" /></li> </pega:foreach> </ul>
But at runtime in the generated word file we can not see images.
Could you please help, how we can