FileStream ostrm; StreamWriter strm; TextWriter txtWrt = Console.Out; ostrm = new FileStream(path + "\\Output.xls", FileMode.Truncate, FileAccess.Write);
public Excel.Application app = null; public Excel.Workbook workBook = null; public Excel.Worksheet workSheet = null; app = new Excel.Application(); workBook = app.Workbooks.Add(); workSheet = (Worksheet)workBook.Worksheets.get_Item(1); workBook.SaveAs(path+ "\\Output.xls"); workBook.Close(); app.Quit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)