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
Arvind010Arvind010 

How to show a PRINT dialog box in visual force page?

In a visual force page, i have a link called "Print Terms and Conditions". When the user clicks on the link, it should take the user to a page with Terms and conditions content and Print dialog box should be displayed.Is there any standard function available in Salesforce?

Please provide me the solution.

David VPDavid VP
Javascript already takes care of that.

window.print()

You could attach it to the onload() of the body for example.


David