export datalist

Technical support for Spire.DataExport

Moderators: iceblue support, DataExport, Manager

export datalist

Postby santoz » Thu Sep 11, 2008 7:23 am


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=, Culture=neutral, PublicKeyToken=4bc1500157862925' or one of its dependencies.

What am i doing wrong?
Posts: 8
Joined: Wed Sep 10, 2008 8:22 am
Location: Netherlands

Return to Spire.DataExport

Who is online

Users browsing this forum: No registered users and 0 guests