docx template problem with docxHtml



  • Hello,

    I have a problem with docx template, using the docxHtml tag.

    If I put this into ONE ROW of docx template
    {{brand}} {{model_no}} {{docxHtml content=slug}}

    When I set this data object to the jsreport, brand, model_no are disappeared, there is only the docxHtml slug
    const jsreportdata = {brand: 'New Brand', model_no: 'Model 123', slug: '<a href="https://google.com" target="_blank">Learn More</a>'}

    Example of template here

    How can I fix this?

    Thank you,
    Thai


  • administrators

    hi! what you are describing is how docxHtml works by default, it is mentioned in the docs, if you want to preserve content defined in the same paragraph that contains docxHtml call then you need to use inline mode


Log in to reply
 

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