tags:

views:

147

answers:

1
+1  A: 

HTML is not the same thing as XML.

The SpreadsheetML language used by Excel 2002/2003 is a completely different language. If you even get Excel to open the file, it's only because it tends to recognize HTML files regardless of the file extension.

As for the Unicode issue, I think the problem is your StringWriter's Encoding setting when calling ToString().

I recommend looking into the NPOI project, which contains everything you need to create binary/BIFF (Excel 97/2000), SpreadsheetML (Excel 2002/2003), and OOXML (Excel 2007) files from .NET:

http://npoi.codeplex.com/

richardtallent
no idea ... how to add my already made table to sheet ? maybe ... (check 1st question)
nCdy