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
Kajasheriff SannathKajasheriff Sannath 

Document print with the content mentioned in the attached document

If anyone worked on the below use case, please reply back.

Use Case: On the Contract page, after saving the data, when I click on a button, a document print will be generated. A file attachment (docs or pdf) against that record should also get printed on a running page.
Atosi MalakarAtosi Malakar
Hello Kajasheriff,
You can check below link
https://www.salesforcetroop.com/file_preview_lwc.

Create that tab and insidethat tab show the content data. In that lwc add one button called print and execute the java script Window.print().