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

The next time I read a blog,

The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought you have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention. http://bestofbasketbal.livejournal.com http://thehorse.over-blog.com/ http://mysoccerjerseys.wallinside.com/

Add new comment | Penyaskito Blog

You really make it apear sso easy along with your presentation however
I in finding this matter to be actually something that I think I would by no means understand.

It seems too complicated and very wide for me. I'm taking a
look ahead in your next publish, I'll attempt to get the grasp of it!

Here is my webste ... <a href="http://www.webcaredirectory.com/articles/115041-superb-advice-to-help-a-... money mastery members</a>

Add new comment | Penyaskito Blog

Hmm it looks like your website ate my first comment (it was extremely
long) so I guess I'll justt sum it up whawt I wrote and say,
I'm thoroughly enjoying your blog. I as well am an aspiring
blog blogger but I'm still new to everything.
Do you have any tips and hints for first-time blog writers?
I'd definitely appreciate it.

Also visit my web pge <a href="http://rik-i-morti.ru/user/BrandonTdd/">google sniper official website</a>

Add new comment | Penyaskito Blog

Howdy I am so thrilled I found your blog, I really found you
by mistake, while I was researching on Bing for something else,
Anyhow I am here now and would just like to
say kudos for a incredible post and a all round entertaining blog (I also love the theme/design), I don't have time to look over it
all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time
I will be back to read a great deal more, Please do keep up the superb work.

Take a look at my web blog <a href="https://casinonlinereviews.com/">online casinos reviews</a>

Add new comment | Penyaskito Blog

Howdy, i read your blog occasionally and i own a similar one and i was just curious if
you get a lot of spam responses? If so how do you reduce
it, any pluugin or anything you can advise? I get so much lately it's
driving me mad so any assistance iis very much
appreciated.

Feel free too surf to my site the powwr of conversational hypnosis home study program
download - http://www.Betasns.com/space.php?uid=1457&do=blog&id=3075

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.