Hello Everyone,
I am using DocX from Dynamic Template to insert a signature in a Word document. I need to insert the same image in two different places. While the first signature is working correctly, the second one is not updating as expected and remains the same. I have uploaded the Template, XML code, Images code, and the generated document for your review. Please let me know if there's an issue with my configurations.
Thank you in advance!
XML:
= "<project> <signature>" & cons!SIGNATURES[1] & "</signature> </project>"
Images perameter:
= {signature: cons!SIGNATURES[1]}
Two_signatures_Template.docx
Result_File.docx
Discussion posts and replies are publicly visible
This issue is resolved. Thanks.
Hi! We are actually having a problem with this. We are mapping the image in the xml code and also in the image parameter on the docx from dynamic template smart service. We also have a bookmark on our docx template.Could you tell us how you solved our problem please?
We are having this error:freemarker.core.NonSequenceOrCollectionException: The value you try to list is an extended_hash+string (fr.opensagres.xdocreport.document.images.ByteArrayImageProvider wrapped into f.e.b.StringModel), thus you must specify two loop variables after the "as"; one for the key, and another for the value, like <#... as k, v>). ---- FTL stack trace ("~" means nesting-related): - Failed at: #list logo as logo [in template "fr.opensagres.xdocreport.document.docx.DocxReport@250d2e8d!word/document.xml" at line 4, column 930] ----
Hi, you will have to pass an array of images , you must be passing only one image in images parameter. try passing more than on and this error would be resolved
Thanks