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
Milo6996Milo6996 

Print button on visual force page

Hi Guys and Gals

 

I am new to apex and am trying to insert a Print button on the top of the page. I thought I understood the concept but obviously not....

I have been trying

 

      <apex:commandButton value="Print" action="{!Print}"/>

 

but i get the following error

 

Error: Unknown method 'AccountStandardController.Print()' 

 

Any help would be great

_Prasu__Prasu_

You can do that from javascript using

Onclick="window.print(); return false;"