docxImage inconsistency between different Word versions

  • Hi,
    I have been able to generate the docx but, while the docxImage placeholders result correctly replaced on my version of MS Word (and some others), on some other versions the image is still the placeholder image.
    I mean that I open the same output docx file on 2 different MS Word versions (on Mac and Windows) and they display different images... It's pretty weird!
    To be more specific, on the versions on which the placeholder is not replaced, the docx is initially opened with the "Restrict Editing" option active: while editing is restricted the correct/replaced images are displayed, but when it gets disabled the images are replaced with the old placeholder.
    Has anyone ever experienced it and found a solution?

  • I tried this on Windows, Office 365 Word version 2101, in the restricted mode, with this template and the image is displayed properly.

    Please share OS and Word version in which you experience the problem.

  • Hi @jan_blaha,

    it works fine on:

    • Microsoft Word for Mac - version 16.9 (180116) / Mac OS 10.13.6 High Sierra
    • Microsoft Word for Mac - version 16.45 (21011103) / Mac OS 10.15.7 Catalina
    • Office Professional 2016 16.0.13530.20440 / Windows 10 Home, version 2004 (build 19041.746)

    it doesn't work on:

    • Office 2016 MSO 16.0.13628.20128 / Windows 10 pro, version 2004 (build 19041.746)
    • Office 365 2020. Word version 2101 (build 13628.20274) / Windows 10 Home, version 20H2 (build 19042.746)
    • Office Home Business 2019 - Word version 2012 ( build 13530.20440) / Windows 10 Home, version 20H2 (build 19042.746)
    • Word 2016 MSO (16.0.4266.1001) / Windows 10 Home, version 1909 (build 18363.1316)

  • Thank you for the summary.

    Hm, as I mentioned, this particular version worked for me

    • Office 365 2020. Word version 2101 (build 13628.20274) / Windows 10 Home, version 20H2 (build 19042.746)

    Could you try to open this link and in the "Run" context menu hit "Download" button. Open downloaded excel, it should be in the protected view because downloaded from the internet. This opens for me with proper image in Word version 2101 (build 13628.20274)

  • Thanks @jan_blaha for your support, I tested your example and it worked and somehow led me to a working solution: not sure if this was the root of the issue but my image placeholder was in PNG format (had to unzip the docx to find out) while placeholders in your example are JPGs. Replacing my placeholder with a new one in JPG format solved our use case.

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.