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
raj29matraj29mat 

Visual force Report

Hi all,
 
   I have developed a visual force report where i am showing the output as pdf.
But for the table below I have 11 columns to display.But I am seeing only
6 columns.How can I view all the columns in a page.Can I adjust the output
size
<apex:page controller="accountdetail" renderAs="pdf" >
  <h1><Center>Customer Visit Report</Center></h1><br><br></br></br>
</apex:dataTable>
 </apex:pageBlock>
<apex:pageBlock title="Consumption Information">
  <apex:dataTable value="{!consumption}" var="consumptions" 
cellPadding="4" border="1">
<apex:column >
<apex:facet name="header"><b>Account </b></apex:facet>
<apex:outputText value="{!consumptions.Account__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b> Product </b></apex:facet>
<apex:outputText value="{!consumptions.Product__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales </b></apex:facet>
<apex:outputText value="{!consumptions.Rolling_Sales__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales Last
Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_LY__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b>Rolling Sales VS  Rolling Sales
Last Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_Vs_Rolling_Sales_LY__c}"/
>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Sales</b></apex:facet>
<apex:outputText value="{!consumptions.Cumulated_Sales__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales VS Cumulated
Sales  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_Vs__c}"/>
</apex:column>
 
 
<apex:column >
<apex:facet name="header"><b>Cumulated
Volume</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Volume 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Volume  VS Cumulated
Volume  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_Vs_Cumulated_Volume_LY
__c}"/>
</apex:column>
</apex:dataTable>
 </apex:pageBlock>
 
</apex:page>
 
 
 
Thanks and Regards
Raji
Ron HessRon Hess
did you try landscape layout for your PDF page?
raj29matraj29mat
Hi,
 
  I tried creating stylesheet and make that as static resource and mentioned in page.
But it isnot working
 
<pre>
/* This style definition applies for PDF conversion
and allows for specific formatting within that context */
@page {

/* Landscape orientation */
size:landscape;
}
</pre>
 
 
and I called it as
<apex:stylesheet value="{!$Resource.printcss}"/>
 
But not working.
 
Regards
Raji
Ron HessRon Hess
See this article, which has a sample of PDF generation that will show you the steps

http://wiki.apexdevnet.com/index.php/Visualforce_CaseHistoryTimeline




Message Edited by Ron Hess on 08-22-2008 05:35 PM