Tag Archives: Export

Salesforce supports developers greatly with including an export functionality for Visualforce pages. In order to generate the Excel sheet, developers need to have a Visualforce beginning, such as the following:

XHTML

1

2

3

<apex:page controller="ExcelSheetController"

contentType="application/vnd.ms-excel#{!sheetName}.xls"

showheader="false">

Then you need to simply define the content of the Visualforce page and when it is opened, the file is downloaded. Sounds easy, right? When you are working with… Read More »