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
shravanshravan 

I want field Heading Names in 2nd, 3rd... pdf file

Hi,

 

 

I genereated pdf file In that, I am getting field Heading values in 1st page only. I need field values in remaining page also.

 

Like

E.No    Name   Company

----       --------   ---------------

 

I want this heading in all pdf pages

 

 

Please help me.

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

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.

<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. 

 

 

All Answers

Navatar_DbSupNavatar_DbSup

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.

<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. 

 

 

This was selected as the best answer
shravanshravan

Hi,

 

In 2nd page field Names collapsing with data.

 

Please Help Me