hungdt138 / html5rocks

Automatically exported from code.google.com/p/html5rocks
0 stars 0 forks source link

Tutorial on file exports #876

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to write a piece on file exports using the file API, such as the usual 
export to excel button(The tutorial will remain simple, touching only CSV but 
pointing to advanced uses as well, like pdf, ms xml, odf etc.).

The  big motivation behind that article is that it covers the first truly clean 
solution to a major problem faced by every web app developer.

Original issue reported on code.google.com by ludovic....@gmail.com on 26 Apr 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Will you provide a library to export in differnt formats? Can you provide an 
outline for the tutorial?

Original comment by ericbide...@html5rocks.com on 9 May 2012 at 7:21

GoogleCodeExporter commented 9 years ago
Sure and then I'll also offer a full html5/js replacement for flash, free, on a 
google sponsored website.

In other words, writing said library in JS is more work than creating a full 
GUI framework from scratch so I'll pass.

This is more about helping other devs walk the right path (instead of the dark 
side of server-side echo $filecontent;) rather than offer them a ride.

I was thinking along the lines of simple:
1. simplest usage example . table to csv
2. how to write a file 
> link to the file API tutorial
> how to actually write text to a file / set type
> createcsvfile wrapper
3. how to get table contents
4. glue
5. how to do other file types
> link to format documentation
> link to existing O/S libraries

Original comment by ludovic....@gmail.com on 10 May 2012 at 2:03