Skip to main content
Penyaskito Blog

Main navigation

  • Home
Language switcher
  • English
  • Español
User account menu
  • Log in

Breadcrumb

  1. Home

Excel

By penyaskito , 22 September, 2014

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

  • Salesforce
  • Excel
  • exports
  • Visualforce
  • APEX
Excel

Monthly archive

  • April 2026 (3)
  • August 2025 (1)
  • April 2025 (1)
  • July 2023 (1)
  • December 2021 (1)
  • May 2021 (2)
  • April 2021 (1)
  • September 2014 (1)
  • November 2012 (1)
  • September 2012 (2)
  • August 2012 (3)
  • June 2012 (6)

Recent content

Droople Reader, my new way of consuming RSS feeds
4 days ago
How I keep up with changes in Drupal
6 days ago
Quarterly Contributions summary for 2026 Q1
1 week 5 days ago

Recent comments

D.org integration
1 day 20 hours ago
Can't blame you 😜For me…
2 days 19 hours ago
For years, my primary source…
3 days ago

Blogs I follow

  • Mateu Aguiló "e0ipso"
  • Gábor Hojtsy
  • Pedro Cambra
  • The Russian Lullaby, davidjguru
  • Can It Be All So Simple
  • Maria Arias de Reyna "Délawen"
  • Matt Glaman
  • Daniel Wehner
  • Jacob Rockowitz
  • Wim Leers
  • Dries Buytaert
  • arcturus
  • Drupal Core AI digest
  • Drupal CMS AI digest
  • Drupal Canvas AI digest
  • Drupal AI AI digest
  • Drupal Patterns AI digest
  • Trisha Gee
  • Très Bien Tech, by _nod
  • Moshe Weitzman
  • Drupal core change records
  • Ed Zitron's Where's Your Ed At
Syndicate

Footer

  • Drupal.org
  • LinkedIn
  • GitHub
  • Mastodon
  • Twitter
Powered by Drupal

Free 🇵🇸