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
Malik ButlerMalik Butler 

Object field is showing up as filed ID instead of actual information

<apex:page standardController="Case" renderAs="pdf" applyBodyTag="true">
    <head>
        <style> 
            body { font-family: 'Times New Roman Unicode MS'; }
            .companyName { font: bold 30px; color: red; }  
        </style>
    </head>
    <body>
        <center>
        <h1>Service Work Order</h1>
        <h4>Integrated Precision Systems</h4>
        <h6>9321 Ravenna Rd. Suite C. Twinsburg, OH 44087</h6>
      
        </center>
      <left><apex:outputText value="{!Case.CaseNumber}"/> <apex:outputText /></left>
       
         </body>
    <body>
    <left><apex:outputText value="{!Case.Subject}"/> </left>
    
    </body>
    <body>
    <left><apex:outputText value="{!Case.Priority}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Account_Name__c}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Type}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Description}"/> </left>
    </body>
</apex:page>
User-added imagePlease help don't know if there is anything I'm doing wrong or if it is anything that I can fix.
 
Best Answer chosen by Malik Butler
Raj VakatiRaj Vakati
Try like this

<left><apex:outputText value="{!Case.Account_Name__r.Name}"/> </left>

 
<apex:page standardController="Case" renderAs="pdf" applyBodyTag="true">
    <head>
        <style> 
            body { font-family: 'Times New Roman Unicode MS'; }
            .companyName { font: bold 30px; color: red; }  
        </style>
    </head>
    <body>
        <center>
        <h1>Service Work Order</h1>
        <h4>Integrated Precision Systems</h4>
        <h6>9321 Ravenna Rd. Suite C. Twinsburg, OH 44087</h6>
      
        </center>
      <left><apex:outputText value="{!Case.CaseNumber}"/> <apex:outputText /></left>
       
         </body>
    <body>
    <left><apex:outputText value="{!Case.Subject}"/> </left>
    
    </body>
    <body>
    <left><apex:outputText value="{!Case.Priority}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Account_Name__r.Name}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Type}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Description}"/> </left>
    </body>
</apex:page>

 

All Answers

Raj VakatiRaj Vakati
Try like this

<left><apex:outputText value="{!Case.Account_Name__r.Name}"/> </left>

 
<apex:page standardController="Case" renderAs="pdf" applyBodyTag="true">
    <head>
        <style> 
            body { font-family: 'Times New Roman Unicode MS'; }
            .companyName { font: bold 30px; color: red; }  
        </style>
    </head>
    <body>
        <center>
        <h1>Service Work Order</h1>
        <h4>Integrated Precision Systems</h4>
        <h6>9321 Ravenna Rd. Suite C. Twinsburg, OH 44087</h6>
      
        </center>
      <left><apex:outputText value="{!Case.CaseNumber}"/> <apex:outputText /></left>
       
         </body>
    <body>
    <left><apex:outputText value="{!Case.Subject}"/> </left>
    
    </body>
    <body>
    <left><apex:outputText value="{!Case.Priority}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Account_Name__r.Name}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Type}"/> </left>
    </body>
    <body>
    <left><apex:outputText value="{!Case.Description}"/> </left>
    </body>
</apex:page>

 
This was selected as the best answer
Malik ButlerMalik Butler
Thank you for your help!