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
SFDC Forum 007SFDC Forum 007 

VF PDF Page in Tabular format

Hi,

 

 I have a VF Page which a pdf rerport is generated on click of a button , I want all the details in the vf page to be displayed in a tabular format

 

Please help me to do this

apex:page standardController="Call_Report__c" renderAs="PDF" showHeader="false" standardStylesheets="false" extensions="CallReportExtn" >
<html>
    <head>  
<style type="text/css">

</style>
                        </head>
                        <body class="bodys">
                            <div class="header">   
                                <apex:outputLabel styleClass="callSch" >Call Schedule :</apex:outputLabel>
                                <apex:outputText styleClass="callSch" value="{0,date,dd MMM yyyy}">
                                     <apex:param value="{!NOW()}" />
                                </apex:outputText>
                            </div>
                            
                            
                            <table width="100%" height="100%" class="bodycontent" >
                                
                                <tr style="background-color:#FFFFFF">
                                        <td colspan="5" style="padding:0px;font-size: 14px ;background-color:#FFFFFF">                                    
                                              <table width="100%" height="100%" class="custtable" >                                                
                                                <apex:repeat value="{!pdfWrapperList}" var="ba">
                                               
                                                <tr>
                                                      <td><b>Name</b></td>
                                                     <!-- <td><b>Time</b></td>-->
                                                      <td><b>Address</b></td>
                                                      <td><b>Post Code</b></td>
                                                      <td><b>Phone</b></td>
                                                      <td><b>Rep Event</b></td>
                                                      <td><b>Type</b></td>
                                                      <td><b>Segmentation</b></td>
                                                      <td><b>Patients</b></td>
                                                      <td><b>Seats</b></td>
                                                      
                                                      
                                                 </tr>
                                                 <!--<apex:repeat value="{!pdfWrapperList}" var="ba"> -->
                                                      <tr>
                                                      
                                                      
                                                  <!--  <td width ="50%" align="center">
                                                    <font face="verdana" color="#0000FF">-->
                                                   <td>
                                                   <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                  
                                                    {!ba.cr.Account__r.Name}
                                                    </textarea>
                                                  
                                                   <!-- </font>-->
                                                    </td>
                                                    
                                                    
                                                    
                                                     <!-- <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <!--<apex:outputText value="{0,date,hh:mm}">-->
                                                               <!--<apex:param value="{!ba.cr.Date__c}" />-->
                                                         <!-- </apex:outputText> -->
                                                            <!--</textarea>
                                                      </td>-->
                                                       
                                                      <td>
                                                      <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.BillingStreet},{!ba.cr.Account__r.BillingCity},{!ba.cr.Account__r.BillingState},{!ba.cr.Account__r.BillingCountry}
                                                       </textarea>
                                                       </td>
                                                       
                                                      <td>
                                                      <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.BillingPostalCode}</textarea></td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Phone}
                                                      
                                                      
                                                      </textarea></td>
                                                      
                                                     <td><textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                     Rep Event
                                                     </textarea>
                                                     </td>
                                                      
                                                     
                                                      <td> <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Type}
                                                      </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Segment_status__c}
                                                      </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <apex:outputText value="{0,number,0}">
                                                                 <apex:param value="{!ba.cr.Account__r.Total_Number_Of_Patients__c}" />
                                                           </apex:outputText>
                                                          </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <apex:outputText value="{0,number,0}">
                                                                 <apex:param value="{!ba.cr.Account__r.No_of_Seats__c}" />
                                                           </apex:outputText>
                                                          </textarea>
                                                      </td>
                                                     
                                                 </tr>
                                                 
                                             
                                                   <apex:repeat value="{!ba.pernAcctList}" var="pa">                                               
                                                 
                                                 
                                                 <tr>
                                               
                                                  
                                                     <td>{!pa.paName}</td>
                                                     
                                                      <td>{!pa.paJobTitle}</td>
                                                      
                                                      
                                                       

                                                    
                                                    <td> {!pa.crdate}</td>
                                                     
                                                    
                                                    
                                                      <td>
                                                      {!pa.paLastvisit}
                                                     <!-- <apex:outputText value="{0,date,dd/mm/yyyy}">
                                                               <apex:param value="{!pa.paLastvisit}" />
                                                         </apex:outputText>-->

                                                      </td>
                                                      
                                                      
                                                      
                                                      
                                                      
                                                     <td>{!pa.paBrand1}</td>
                                                     <!-- <td>{!BBLS}</td>-->
                                                     <td>{!pa.paBrand2}</td>
                                                     <td>{!pa.paBrand3}</td>
                                                     <td>{!pa.callObjective1}</td>
                                                     <td>{!pa.callObjective2}</td>
                                                    
                                                 </tr>
                                                 
                                                 </apex:repeat>
                                                     <tr>
                                                      
                                                 </tr>
                                                 
                                               
                                                                                            
                                                  <tr>
                                                      <td colspan="10"><hr class="accline"></hr></td>
                                                 </tr>
                                                 </apex:repeat>
                                                                                                 
                                                 
                                             </table>                                  
                                   </td>                                                                    
                                </tr>
                                                               
                                  
                            </table>                              
                        
                              
                        </body>
            </html>


           </apex:page>

 

This is my vf page

 

Please help me with my issue

 

 

Thanks and regards