function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Please anyone suggest me solution for this issue (Except renderedAs)
You have SOQL in your controller
here is the easiest method
you can write a page with "contentType" and append that list having records like in below page
<apex:page controller="SendExcelFileMonthly" contentType="application/x-excel#filename.xls">
<apex:pageBlock >
<!-- List having queried data -->
<apex:column value="{!comp.Name}"/>
<apex:column value="{!comp.Module_Name__c}"/>
<apex:column value="{!comp.Project__c}"/>
<apex:column value="{!comp.Status__c}"/>
<apex:column value="{!comp.Task_Date__c}"/>
<apex:column value="{!comp.Task_Detail__c}"/>
<apex:column value="{!comp.Task_Name__c}"/>
<apex:column value="{!comp.Hours__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Regards,
Abhi Tripathi
Salesforce Developer