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
saiarusaiaru 

Can I put "printable view" in my visual force page?

I am trying to put Printable View option on a VF page.
In account's detail page , there are "printable view" which bring me to
https://ap2.salesforce.com/0012800000dKY3l/p?retURL=/0012800000dKY3l.   (id is diffrent time to time)

Can I put same link on my visual force page?

sfdeveloper9 have asked that in case of using printurl.

I read that. but I could not understand way to making  "printable view".

Could anyone give me basic advice for that?


https://techman97.wordpress.com/2013/07/22/visualforce-page-printable-view/ is best answer for this?

Pankaj_GanwaniPankaj_Ganwani
Hi,

Use window.print(); method of javascript:
 
function printpage()
{
    window.print();
}

<a href="#" onClick="printpage();"/>

 
saiarusaiaru
I am sorry , I have never embeded JS in VF.

How can I embed JS in following simple VF?
<apex:page >
  <h1>Congratulations</h1>
</apex:page>
 
saiarusaiaru

sorry I solved by my self