Unable to add image dynamically in a pre-uploaded Xlsx template for excel sheet



  • Hi,
    I have a sheet that has a pre-uploaded template in the codebase using contentRaw.xlsx that is used to display dynamic charts that come from pivot tables. I'm now trying to upload an image using base64 in a variable as
    {{#xlsxAddImage "custom-logo" "sheet1.xml" 0 0 3 4}} {{customLogo}}
    {{/xlsxAddImage}}

    where "customLogo" is the variable that has base64. Using the same line of code I'm able to upload in another sheet, where this sheet is a worksheet that only has numeric data.

    PFA the snap of the error0_1635153063311_Screenshot from 2021-10-25 14-30-15.png



  • @jan_blaha @bjrmatos @bjrmatos26 Please let me know how can this be solved. Also, please let me know if you need more information around it.



  • Could you please share a playground demo replicating the issue?
    Thank you
    https://playground.jsreport.net/



  • @jan_blaha , sorry for the late reply. This issue was because I was using v2.3.0. I upgraded the version and it's working. When I was not able to reproduce on the playground, then I got to know.
    Thanks for your time!


Log in to reply
 

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