How to Download and Print PDF Classic Report in Oracle Apex

How to Download and Print PDF Classic Report in Oracle Apex

Steps On How to Download and Print PDF Classic Report In Oracle Apex.

Follow All The SQL Codes And Steps Below Correctly. In Today's Post I Will Discuss Download and Print PDF Report.
1. Create An Classic Report According To Your Needs
2. Goto Page Properties-html Header-paste The Following Code-

<script type="text/javascript">function Export() {
    html2canvas(document.getElementById("PDF"), {
        onrendered: function(canvas) {
            var data=canvas.toDataURL();

            var docDefinition= {
                content: [ {
                    image: data,
                    width: 500
                }

                ]
            }

            ;
            pdfMake.createPdf(docDefinition).download("Table.pdf");
        }
    });
}

</script>

3. Goto Region Properties- Static ID=PDF
4. Goto Region Properties Header Text- Paste The Following Code-

<input type="button" id="btnExport" value="Export" onclick="Export()" /><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.22/pdfmake.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
How to Download and Print PDF Classic Report in Oracle Apex

Then Enjoy.............

2 Comments

Hlo Sir

Previous Post Next Post