Search This Blog

Wednesday, May 27, 2020

Screenshot From Oracle Apex By JavaScript

Step 1 . Download the file from Here

Step 2. Upload the file into Static Application Files

Step 3. Copy-Pest the source into Page>> JavaScript>>File UTLs

Step 4. Copy-Pest the JavaScript Into Page>> Function and Global Variable Declaration

function screenshot(){
html2canvas(document.body).then(function(canvas) {
var a = document.createElement('a');
a.href = canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream");
a.download = 'image.jpg';
a.click();
}); }  

Step 5. Create a button and call dynamic action with click event and JavaScript Action and

call the function :   screenshot();

No comments:

Post a Comment

Restrict File Upload by File Type in Oracle Apex

If you want to restrict file upload by file type/extension/format you can follow the below steps.  Goto File Browser Item --> Advanced --...