Question
Belvnesheconombank
BY
Last activity: 10 Oct 2024 13:21 EDT
RUF pzGenerateDocument generates word documents that can be opened in Office 2021 vtrsion
Hi everybody!
We have two servers: 7.1.9 and 8.3.0
On 7.1.9 I tried to generate word document thru RUF pzGenerateDocument (RS Pega-AppDefinition:07-10-17). It's doesn't work because of old version of methods inside RUF (I mean checking and extracting pega tags etc. in new word formats)
So I took RUF pzGenerateDocument from 8.3.0 server (RS Pega-AppDefinition:08-03-01) and create the same RUF on 7.1.9. And it works fine! Documents generating is good
Now, the issue description:
I have the word template rule with only <pega:reference> tags and plain text inside .docx template. So when I use described RUF pzGenerateDocument (RUF on 7.1.9 based on java-code from RUF on 8.3.0) I get correct file for downloading, it opens correctly in Microsoft Office 2021 (x32). But when I send this file to my coworkers, they can't open it (error message attached to this question as attachment). They all have Microsoft Office 2019 (x32/x64). So tell me please what should I do to save (generate) word template which can be opened in different versions of MS Office?
Maybe problem in java step org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(is) of RUF? Maybe I should load stream with defining its' type directly? But I don't know how to do it.
Maybe I should do some edits inside RUF java code to create correct word ZIP-structure for old MS Office? To these old versions could read (recognize) it?
And maybe the issue has different reasons...