Skip to content

Instantly share code, notes, and snippets.

@rapsacnz
Created January 27, 2016 00:19
Show Gist options
  • Save rapsacnz/6c9142023a4f0f055a8d to your computer and use it in GitHub Desktop.
Save rapsacnz/6c9142023a4f0f055a8d to your computer and use it in GitHub Desktop.
public ExcelExportController() {
xmlheader ='<?xml version="1.0"?><?mso-application progid="Excel.Sheet"?>';
endfile = '</Workbook>';
opportunities = [SELECT Id, Name, StageName, Amount FROM Opportunity LIMIT 10];
oppSize = opportunities.size();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment