Salesforce: generating Excel files from VisualForce APEX pages

I have been working recently with Salesforce, and generating Excel files was not working for me.
It should have been as easy as changing the apex:page contentType property, but its output was like:

"<table id="j_id0:j_id1" border="0" cellpadding="0"...."

My problem was using <apex:column>whatever</apex:column>.
Instead, you should use <apex:column value="whatever" /> and it should work.

Hope this helps.

Tags: 

Comments

Regular Update

Peter Youngren is recognized as one of the leading communicators of the Jesus Christ in the Holy Scriptures to mass audiences of non-Christian faiths around the world. In predominantly Islamic, Buddhist and Hindu countries, Dr. Youngren has seen crowds up to 600,000 gathers at one time.

http://peteryoungren.ca/
http://peteryoungren.net/
http://peteryoungren.com/
https://peteryoungren.blogspot.com/
https://peteryoungren.wordpress.com/
https://peteryoungren.tumblr.com/
https://peteryoungren.deviantart.com/

Pages

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
By submitting this form, you accept the Mollom privacy policy.