You need to sign in to do that
Don't have an account?
SFDC coder
how to maintain table headers on subsequent pages when rendered as pdf??
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.
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
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> {!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
http://salesforce.stackexchange.com/questions/56935/records-truncated-end-of-page-in-pdf
All Answers
- Harsha
http://salesforce.stackexchange.com/questions/56935/records-truncated-end-of-page-in-pdf
1. Make sure your <apex:page tag looks something like this:
2. Make sure you have have markup for a full html page:
3. In your CSS add this stuff: