1. Create a Region and Do what ever you want.
2. Set a static id of the region. Region properties>>Advance>>Static ID >> exp: printableArea
3. Create a button and use this code. Button properties>>Advance>>Custom Attributes>>
onclick="printDiv('printableArea')"
4. Use this code on. Region propertice>>Footer Text>>
<script>
function printDiv(printableArea) {
var printContents = document.getElementById(printableArea).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>
Now Enjoy Region Print by JavaScript clicking on print button ..
This code is not work in my IR summery report print.Please Solve it.
ReplyDelete