Render Html page from JS Report
How to render HTML page getting from JS Report(From image right one)
I don't understand, please elaborate.
I am sending the data from my node js application to the js report server and the JS server has generated the output as the above image in a table format, I need to get that output as HTML into my application.
Still not sure I get it... when you use the
htmlrecipe, jsreport returns the html.
It is not when I am passing the data that data is not rendered on div whatever the HTML page is there it is returning the same one with out table data.
@dpkpanchal-hg hi! it is expected that the html that you are generating won't work when inserting on a div, why? because you are generating a full html document (html with
<body>elements), a full document can not be inserting in a standard element (like a
in order to embed a document into your existing document (where your
divlives) you have to use the
<iframe>element. depending on how you get the jsreport output you can either use the iframe's srcdoc attribute to embed inline html string, or use something like the createObjectURL to create a blob src url string from your html that you can use in iframe's src attribute
okay I'll try this
@bjrmatos It is working fine now Thank you so much