I've created a XLS cellExport that should be the same as in your example, but i'm getting some errors. (asp.net C# programming)
global: Spire.DataExport.XLS.CellExport exp;
in Page_Init: exp = new Spire.DataExport.XLS.CellExport();
in click event:
- Code: Select all
ushort Cols = Convert.ToUInt16(s.CacheTableData.Columns.Count);
foreach (DataRow dr in s.CacheTableData.Rows)
{
for (ushort i = 1; i <= Cols; i++)
{
ushort row = Convert.ToUInt16(s.CacheTableData.Rows.IndexOf(dr) + 1);
exp.AddString(i, row, dr[i - 1].ToString());
}
}
exp.SaveToHttpResponse(s.ProjectName + " - " + s.StatName + ".xls", Response);
this is my error, on the saveHttpResponse:
FileNotFoundExeption was unhandled by user code
Could not load file or assembly 'Spire.DataExport.ResourceMgr, Version=1.6.0.0, Culture=neutral, PublicKeyToken=4bc1500157862925' or one of its dependencies.
What am i doing wrong?