@ValentinCerfaux yes, the fix is going to be part of next release.

BORIS MATOS MORILLO
@bjrmatos
Posts made by bjrmatos
-
RE: DocxImage in footer
-
RE: DocxImage in footer
thank you @ValentinCerfaux, i can replicate the problem with your export, we are going to take a look.
-
RE: Formula with "equal" and "if" in Excel
using the
{{#if }}
in this way does not work in xlsx, in Docx it works because the definition of the content there is different from how cells definitions are done. you can use the{{#if }}
in xlsx only if the start end end of the block calls are in the same cell.however this would be nice to support, i have opened new issue to support it, you can subscribe there for updates
-
RE: Disable docx toc update
@bjarnesc yes, let us know if you get to have a sample ready
-
RE: Disable docx toc update
hi @bjarnesc
as I understand from the documentation, if jsreport detects a table of content, it automatically tries to update this. As good as an automated update would be, this seems to be a bit hacky and is not working properly for my template.
maybe we can try to fix the automatic update for your template. if you share your entities we can take a look.
My solution would be to just not use page numbers and to keep the toc as it is in the template, because there is no generated headings. However I do not seem to find a way that the toc just stays the same as in the template. I tried setting {{docxTOCOptions updateFields=false}} in the table header but this did not work. Is there any solution for this?
no way to disable the automatic sync of TOC, the
updateFields
is an option for another purpose, it is described in the docs. i have opened a new issue to add an option to disable the automatic sync, you can subscribe there for updates. -
RE: DocxImage in footer
hi @ValentinCerfaux can you share an export of your template? that would help to verify what is wrong.
-
RE: html-to-xlsx tables with merged cells missing last row
FYI the issue should be fixed on the latest jsreport 4.10.1 release
-
RE: docxImage doesn't work for me
it works for me on latest jsreport (4.10.0), what version are you using? if using a different version, ensure you are using latest jsreport.
-
RE: docxImage doesn't work for me
hi! if you want to preserve the image of the docx template you need to force an error, the
failurePlaceholderAction
will do its job when detecting that there is an error loading the image. to force the error you can set yourlogoBase64
to some invalid url likehttps://error
.it looks inconvenient to do it this way, but maybe in the future we will allow to pass the null value.
-
RE: docxImage doesn't work for me
hi! it is not enough to put the handlebars in the document, you have to follow some specific steps.
Prepare image placeholder using word - place any image to the desired position and format it to your needs.
Select image, select Word tab "Insert", click on "Bookmark and create one
Right click image and click "Hyperlink"
Click bookmark and select previously created bookmark
Click ScreenTip still on the "Insert Hyperlink" modal.
Fill the docxImage helper call {{docxImage src=myDataURIForImage}}
Hit ok and close the hyperlink dialog. Now if you hower the image you should see the docxImage helper call
Run the template with myDataURIForImage prop in the input data and you should see the image replaced in the output.here is an example