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.
Posts made by mettjus
-
RE: docxImage inconsistency between different Word versions
-
RE: docxImage inconsistency between different Word versions
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)
-
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? -
RE: docxTable merged cells
ps: just to be clear, the data set behind the above example would be
[ { "datalogger": "PLV_CEM01", "data": [ {"date": "15/10/2019", "qty": 117.6}, {"date": "14/11/2019", "qty": 192.8}, {"date": "20/12/2019", "qty": 93.2}, {"date": "02/03/2020", "qty": 69.4} ], "aggregated_qty": 625.2 }, { "datalogger": "PLV_PAR01", "data": [ {"date": "15/10/2019", "qty": 122.4}, {"date": "14/11/2019", "qty": 205.8} ], "aggregated_qty": 669.6 }, { "datalogger": "PLV_PAR02", "data": [ {"date": "15/10/2019", "qty": 120.2}, {"date": "14/11/2019", "qty": 172.2}, {"date": "20/12/2019", "qty": 81.6} ], "aggregated_qty": 587.6 } ]
-
RE: docxTable merged cells
Thanks @bjrmatos, I am defining it in the standard method, I guess (see image):
What I am trying to achieve is this...
(note that "date" and "quantity" columns can have a variable number of rows)...but I don't understand how I should define the table and/or the data to do it. Is it even possible?
-
docxTable merged cells
Hi,
is it possible to have merged cells in docxTable (using handlebars engine and docx recipe)?