Support Article
Images render on referring Correspondence rule outside table
SA-105686
Summary
Images render when user refers images inside a table on a Word template and refers the same correspondence rule outside the table on a template file.
Error Messages
Not Applicable
Steps to Reproduce
- Refer an image in a non autogenerated section rule using Pegadocument tags
- Include the section rule in Correspondence
- Include the Correspondence rule in the Word template table
Configuration:
- Insert Correspondence in the table (grid) Word template
{pega:insert corr=<Testcorr> }
- Insert the EmailPreview property for displaying data in the Testcorr Correspondence
- Set When rule to true==true in pyProcessCorrImagesInDocument
ROOT CAUSE
Adding Correspondence in the grid table is not supported on the platform. However, it must be built with reference to the code available in pzGenerateDocument.
Resolution
Perform the following local-changes:
- Create the template after downloading the file
- Use the same MSOffice version to prevent incompatibilities (latest version of MSOffice is recommended)
- Verify the docx4j version (must be 6.1 or higher)
Published July 18, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.