function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Muthu Kumar 54Muthu Kumar 54 

how to take screen capture in lightning web components

Best Answer chosen by Muthu Kumar 54
SwethaSwetha (Salesforce Developers) 
HI Muthu,
Try the code from 
https://www.sfdcblogs.com/post/create-screenshot-from-div-in-lwc

Lightning component: https://salesforcecodex.com/salesforce/capture-screen-using-lightning-component/

Related: https://stackoverflow.com/questions/4912092/using-html5-canvas-javascript-to-take-in-browser-screenshots

If this information helps, please mark the answer as best. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Muthu,
Try the code from 
https://www.sfdcblogs.com/post/create-screenshot-from-div-in-lwc

Lightning component: https://salesforcecodex.com/salesforce/capture-screen-using-lightning-component/

Related: https://stackoverflow.com/questions/4912092/using-html5-canvas-javascript-to-take-in-browser-screenshots

If this information helps, please mark the answer as best. Thank you
This was selected as the best answer
Muthu Kumar 54Muthu Kumar 54
Hi Swetha ,
            I have already try this link but not working  
 
Naveen KNNaveen KN
Could you please share more details on the exact requirement?
Muthu Kumar 54Muthu Kumar 54
hi Naveen KN ,
         Once I button click and take screenshot in lightning web component .