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
Bhargav krishna 1Bhargav krishna 1 

Unable to diaplay the field values in the PDF page

Hi everyone,
I'm unable to display the field values in the custom pdf page. Can anyone help me over here.

Thanks in advance,
Bhargav.
Nagarjuna Reddy NandireddyNagarjuna Reddy Nandireddy
<apex:page renderAs="pdf">
<center>
<h1>Welocome to Salesforce Tutorial</h1>
</center>
</apex:page>

 
Ankur Saini 9Ankur Saini 9
Hi Bhargav krishna 1,

try this:
 
<apex:page renderAs="pdf" standardController="Account">
<apex:pageBlock >
<apex:pageblockSection >
<apex:outputField value="{!Account.name}"/>
</apex:pageblockSection>

</apex:pageBlock>
  
</apex:page>

Thanks
Ankur Saini
http://mirketa.com