skip to Main Content

I have a Docker Image where jsReport is rendering a custom doxc file to a pdf. I have normal string values like firstname and lastname + some checkboxes depending on previous user input.

Evening works fine for the string values, but the checkboxes will not get rendered.

String values

Boolean values

After rendering, it looks like this:

String rendered

Boolean rendered

The data looks like this:
{
"customer": {
"fullName": "John Doe",
"birthDate": "10.10.1999",
"companyRegistrationNumber": " / AB123456",
"fullAddress": "Street 1234 B5",
"email": "[email protected]"
},
"date": "11.09.2022",
"ready": true
}

It is rendering something, it even uses the "ready" value because it displays the same string as "true", but it is not displaying a checkbox

2

Answers


  1. Chosen as BEST ANSWER

    The property menu is not available with the right-click menu. It is only in the developers tab

    Menu


  2. The docxCheckbox helper call needs to be placed in the title of the word checkbox.

    See the documentation
    https://jsreport.net/learn/docx#forms

    And the demo
    https://playground.jsreport.net/w/anon/DtnCaXMs

    https://jsreport.net/learn/docx#forms

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search