Hiya
I thought I'd give a quick round-up of the possible ways to write an Excel document from a test case
Often manual testers like Excel reports from test cases, to show what was tested, and what was different from the expected. To my knowledge the following options exist:
Use Excel COM
- Easy to use object model
- Requires Excel to be installed on test machine
- Excel process may not close when test finishes
Use XML
For example DataTable.WriteXML
- Easy to create
- Doesn't provide any way to format cells (Colors, Borders, Font etc.)
- Not good for large xml files
Use Excel 2003 XML Format
See : http://msdn.microsoft.com/en-us/library ... 10%29.aspx
- Easy to create
- Cells can be formatted (Colors, Borders, Font etc.)
- Not easy to read back such files as input to a test case
- Not good for large xml files
Use Excel 2003 Binary XLS Format
See : http://npoi.codeplex.com/
- Similar object model to Excel COM
- Doesnt require Excel to be installed
- Cells can be formatted, and conditionally formatted
- Has Read/Write capabilities
- Good for large excel documents
Hope thats some good food for thought when thinking about creating Excel reports
Regards