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>
VN:F [1.9.3_1094]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Visualforce Export to Excel / IE Bug, 9.0 out of 10 based on 1 rating
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Categories: Salesforce, Visualforce

Leave a comment

Leave a comment

Feed

http://blog.jeffdouglas.com / Visualforce Export to Excel / IE Bug

WordPress Appliance - Powered by TurnKey Linux