Free Support Forum - aspose.com

Spreadsheet not saving

I am evaluating your control and have some issues with saving right now.

Here is my code…

Aspose.Excel.Excel excel = new Excel();

int wid = excel.Worksheets.Add();

Worksheet sheet = excel.Worksheets[wid];

sheet.Cells[0, 0].PutValue(DateTime.Now.ToString(“MM/dd/yyyy”));

sheet.Cells[0, 0].PutValue(DateTime.Now.ToString(“hh:mm tt”));

string path = Server.MapPath("~\clients\" + ((PageBase)this.Page).CurrentLogin.Client.DataFilesFolder + “\export\”);

excel.Save(path + “schedule.xls”, FileFormatType.Excel97);

Can you tell me what I am doing wrong? A get a spreadsheet, but it has no data in it other than a warning telling me I am using an eval license.

Nm, found the issue. The sheet was opening to the tab with the eval warning. My data was on a separate sheet.