Skip to main content
Penyaskito Blog

Main navigation

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

Breadcrumb

  1. Home

Salesforce

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
Salesforce

Monthly archive

  • 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

Optimizing PhpStorm when it's slow or hangs
3 weeks 2 days ago
Introducing The Dashboard Initiative
1 year 9 months ago
Rewriting history on a git repository for editing author and email on past commits
3 years 4 months ago

Recent comments

I would recommend taking a…
1 year 8 months ago
This looks interesting
1 year 8 months ago
Thanks for the comment
3 years 11 months 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
Syndicate

Footer

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