How to render report inside a div



  • hi,
    How to render report inside a div using jsreport-browser-client-dist/jsreport package ?

    i have rendered report in new tab using the below code,
    jsreport.render('_blank',data));

    Can you please show me one example?


  • administrators

    hi! if you are using jsreport v2 then you can pass the div element to the render, the output of the render will be set in the div.

    jsreport.render(document.getElementById('idOfYourDiv'), data)
    

Log in to reply
 

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