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
kisorekumar mohanraj 4kisorekumar mohanraj 4 

how to print a report in click of a button in lightning ?

how to print a report directly in click of a button in lightning ? without exporting as excle!?
Khan AnasKhan Anas (Salesforce Developers) 
Hi Kisore,

Greetings to you!

There's an idea which is active on the success community with a similar discussion for which you can upvote so that it gets available in the future.

https://success.salesforce.com/ideaview?id=08730000000BrNpAAK

https://success.salesforce.com/ideaView?id=0873A000000cMIoQAM

As of now, you can print the report by doing one of the following::

1. Open the report with your browser and use your browser’s print function.
2. Save the file in Excel and use the print option in Excel.

On a report, click on the dropdown by 'Edit' button and select 'Export'. You will see two options for export now, 'Formatted Excel' and 'Details Only'. Formatted Excel is Salesforce new version of the printable view.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Deepali KulshresthaDeepali Kulshrestha
Hi kisorekumar,

Please read the following below points and follow link with the help of these points and links you can solve your problem, it may be helpful to you.

Print a Report:
Print a report from the run page of a report using your browser’s print function.

-Available in: Salesforce Classic (not available in all orgs) and Lightning Experience
-Available in: Essentials, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
-Available in: Enhanced Folder Sharing and Legacy Folder Sharing

USER PERMISSIONS NEEDED:
To print reports:
    Legacy Folder Sharing
    Run Reports
    AND
    Export Reports
    
    Enhanced Folder Sharing
    Run Reports
    AND
    Export Reports
    
-Click Printable View from the report’s run page.
-From the browser dialog, do one of the following:
    -Open the report with your browser and use your browser’s print function.
    -Save the file in Excel and use the print option in Excel.
    
Link: https://help.salesforce.com/articleView?id=reports_print.htm&type=5
Link: https://success.salesforce.com/ideaView?id=0873A000000cMIoQAM


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha