• pavani kanchi
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi all,

I have an visualforce email template whose attachment is rendered as pdf.I display an apex repeat tag that iterates over my line items as below.
 
<table>
            <tr>
               <th><center>Product Number</center></th>               
               <th><center>Description</center></th>
               <th><center>Quantity</center></th>
               <th><center>Sales Unit</center></th>
            </tr>
            
            <apex:repeat value="{!relatedTo.Order_Line_Items__r}" var="oli">
                <tr>
                <td><center>{!oli.Product__r.Product_Id__c}</center></td>
                <td><center>{!oli.Product__r.Product_Description__c}</center></td>
                <td><center>{!oli.Quantity__c}</center></td>              
                <td><center>&nbsp;&nbsp;&nbsp;&nbsp;{!oli.Sales_Unit__c}</center></td>
                </tr>
            </apex:repeat>    
         </table>

However when there are multiple line items,the table headers are not displayed on subsequent pages.Can anyone please help?
i also reffered to the link https://developer.salesforce.com/page/Creating_Professional_PDF_Documents_with_CSS_and_Visualforce
however was not able to get it correctly