Simple report rendering library based on Jasper Report
<div id="report"></div>
<script type="text/javascript" src="jaspit-viewer.bundle.min.js"></script>
<script>
Jaspit.render({
dom_id: "report",
fetch: "both",//expected values are: ["both", "design", "data"], and anything else will be treated as "none"
design: "/invoice.jrxml",//make sure the java expressions are changed to javascript
data: "/invoice.json",
param:{
logo1: '/logo.jpg'
},
done:function(){//will be called when render is complete
//uncomment to print from browser
//print();
}
});
</script>
Clone this repo, then npm install
- Run
npm run dev
- Then visit http://localhost:9000
see documentation.md
- Font and Global Style Support
- Editor
- Support for most components of Jasper Report
- New components
- CLI