Skip to main content
Penyaskito Blog

Main navigation

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

Breadcrumb

  1. Home

APEX

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
APEX

Monthly archive

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

Recent content

Rewriting history on a git repository for editing author and email on past commits
6 months ago
A Drupal JavaScript behavior for marking edited line items in the cart
1 year 1 month ago
A personal site upgrade from Drupal 7 to Drupal 9: some migration tips
1 year 2 months ago
Salesforce: generating Excel files from VisualForce APEX pages
7 years 9 months ago
Drupalcamp Spain 2012
9 years 7 months ago
Non-interactive performance tests and reporting with JMeter
9 years 9 months ago
Git workflow with submodules for Drupal deployment
9 years 9 months ago
Remoting for the Drupalcon Munich D8MI Sprint
9 years 10 months ago
Drupal Sevilla Talk: Contributing to Drupal
9 years 10 months ago
OOP & PSR-0-ify gettext .po file parsing and generation
9 years 10 months ago

Recent comments

Thanks for the comment
1 year 1 month ago
Thanks for sharing this…
1 year 1 month ago
Looking good!
1 year 2 months ago
lopd
8 years 2 months ago
LOPD
8 years 3 months ago
Gridinit
9 years 9 months ago
Ya la tiene
9 years 9 months ago
Debería :-P
9 years 9 months ago
Ei! tiene buena pinta...
9 years 9 months ago
Buenas Fco Antonio,
9 years 9 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
Josef Ottosson (dotnet)
Daniel Wehner
Jacob Rockowitz
Penyaskito Blog

Footer

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