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

Field Names in every page.



I added my fields in Header tag, the fields are comming in every page but alignment is very big problem so please any more solution to add fields in every pdf page.



I am using below code:


<apex:form style="font-family:Arial;font-size:10pt;">


<apex:pageBlock >

<apex:pageBlockSection columns="1">

<apex:pageBlockTable value="{!finalRG}" var="l" rendered="{!NOT(ISNULL(finalRG))}" cellspacing="3">


<apex:column value="{!}" headerValue=" Relationship Group Name" footerValue="GrandTotals({!count}Records)" style="font-family:Arial;font-size:10pt;"/>



<apex:column headerValue="Primary Name" style="font-family:Arial;font-size:10pt;">






<apex:column style="font-family:Arial;font-size:10pt;">

<apex:facet name="header">Role</apex:facet>








Best Answer chosen by Admin (Salesforce Developers) 

You can create a div which contains your header code which is running across the pdf.Use the below code snippet it would help you.
------------------ sample code --------------------------->
position: running(header1);
<div class="header1" id="logo" width="100%">
<table width="100%" id="logoTable" border="0">
<tr width="100%">
<td width="50%" height="60" ><apex:image url="{!url2}" id="logo11" height="60" width="100" rendered="{!display}"/></td>
<td width="50%" align="right" height="35"><apex:image url="{!url1}" id="logo21" height="35" width="150"/></td>
<tr width="100%">
<td width="100%" colspan="2" height="0"></td>
<table width="100%" class="tableHValue" border="0">
<tr valign="bottom">
<th width="15%" align="left">E.No</th><th width="12%">Name </th><th width="15%">Company</th>


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.