How to add image to excel report?



  • I have "html-to-xlsx" report with "handlebars" engine from one of default examples(sales-main).
    Body code looks something like

    <table name="Sales-Detail">
      <tbody class="head">
        <tr>
          <td>
            <img src="{{{base64image}}}" class="some-class" />
          </td>
        </tr>
     <!-- The rest of the code -->
    </table>
    

    May you have any ideas what went wrong? Everything else if working fine, but I keep having white space instead of image



  • html-to-xlsx recipe doesn't support images.
    We have this feature in the backlog if you want to upvote it or follow it.
    https://github.com/jsreport/jsreport/issues/711

    You need to use the xlsx recipe until it gets implemented.


Log in to reply
 

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