Generating .xls Excel file – part I.

Sunday, August 3rd, 2008

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

In my latest project I need generate Excel .xls file from Flex. Because in Flex or Flash there is no support for such generation, I’ve to do it manually and I want to share this knowledge with all of you in this new tutorial serie. Because content of Excel file can vary this will be serie of posts. And this information is for all developers not only for Flash or Flex coders, because this is general information about generating .xls Excel file, only some parts can contain some ActionScript code.

Different ways of generating .xls file

There is many ways for generating .xls file, I will not write about all ways, just about ways, which were suitable for my Flex project. As probably all of you know .xls is binary file, but it’s not always true. I will write about this later.

How to start with generating .xls Excel file

Maybe best thing at the start is make test .xls file and save it and look at source code. As I told .xls has binary data format, but you have possibilities to save file as Webpage or XML file, and that’s what we want. So we got 2 text formats available:

  • HTML
  • XML

So SUPER SECRET is simple:

Save your html or xml file as .xls file – Excel will do the rest.

In next part I will show you some simple generation of .xls Ecel file with some styling. Stay tuned and subcribe to my RSS Feed or Follow me at Twitter

tagged under: ..

ABOUT THIS AUTHOR

Get a Trackback link

1 Trackbacks/Pingbacks

  1. Pingback: User links about "xls" on iLinkShare on May 21, 2009

2 Comments


  1. James
    Visit Site
    August 6th, 2008

    Also – If you have to save data for the newer Excel 2007 file format, you can create an entire valid Excel file in an xml-based format using Microsofts’ OfficeXML guidelines.


  2. frederic
    Visit Site
    March 1st, 2009

    you van use xml notepad to see the differences
    greetz from belgium

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled

Images is enhanced with WordPress Lightbox JS by Zeo