Visualforce Export to Excel / IE Bug
December 29th, 2008
There is a very nice article on how to export data to Excel using Visualforce. The only problem is that there is a known issue when using Internet Explorer that prevents it from working correctly.
Here is the workaround and I have asked our support rep to check on the status of the bug.
1 2 3 4 5 6 7 8 9 | <apex:page controller="YOURCONTROLLER" contentType="application/vnd.ms-excel#FILENAME.xls" cache="true"> <apex:pageBlock title="Export Results" > <apex:pageBlockTable value="{!results}" var="c"> <apex:column value="{!c.FirstName}"/> <apex:column value="{!c.LastName}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page> |
Categories: Salesforce, Visualforce










