How can I create an Excel document from scratch in aspose.excel?


I’ve been reading through the documentation on aspose.excel, and after running the demos I am still confused as to how I can create a new Excel document using aspose.excel…

Is there some sort of interface that will let me do this? Or does aspose.excel not support its own excel document creation interface.

Could somebody give me some sample code for this if possible?



Dear Greg,

Thanks for your consideration.

A simple sample:

//Create a new Excel object
Excel excel = new Excel();

//Put data

Cells cells = excel.Worksheets[0].Cells;
cells[“A1”].PutValue(“Hello, World”);

//Save file to disk
excel.Save(“d:\book1.xls”, FileFormatType.Default);