You need to sign in to do that
Don't have an account?
Field Names in every page.
Hi,
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="{!l.rg.name}" 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;">
{!NULLVALUE(l.rg.households__PrimaryAccount__r.Name,'-')}
</apex:column>
<apex:column style="font-family:Arial;font-size:10pt;">
<apex:facet name="header">Role</apex:facet>
{!IF(ISNULL(l.rg.households__Tests__r),'-',IF(l.rg.households__Tests__r.size>0,BLANKVALUE(l.role,'-'),'-'))}
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
Hi,
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 --------------------------->
<style>
div.header1
{
position: running(header1);
width:703px;
padding-left:9px;
}
</style>
<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>
<tr width="100%">
<td width="100%" colspan="2" height="0"></td>
</tr>
</table>
<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>
</tr>
</table>
<br/><br/>
</div>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.