As above I need to output a wpf grid control into xls. I tried the below code to start, however when I try to open the xls I get 'the file you are trying to open is in a different format than specified by the file extension '
Code so far...
var writer = new System.IO.StreamWriter("C:\\Users\\dean.lee\\Desktop\\moi.xls");
Ideally I want the above and then I will FOR loop through the grid to populate with data.