I recently had the requirement to take the HTML from a batch of reports on a Web application and output these with very specific formatting requirements to Excel. I am familiar with the basic syntax of setting the content type to ‘application/ms-excel’ before streaming the HTML content. However things get rapidly more complex if the requirements include actually setting presets in Excel.
I’m surprised at how little documentation there is for how to do this online although everyone has a need to do it. The lack of information from the Microsoft official articles is also quite amazing. Basically the developer is left to their own devices when writing code to create spreadsheets dynamically through HTML, XML, and CSS.
The most helpful information I was able to find was at the following sites: Continue reading “Generating Excel documents through HTML, XML, and CSS – Part 1”