Spire.DataExport for .NET is a 100% pure data .NET library suit for exporting data into MS Word, Excel, RTF, Access, PDF, XPS, HTML, XML, Text, CSV, DBF, SYLK, SQL Script, DIF, Clipboard, etc.

Thu Sep 11, 2008 7:23 am

Hi,

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?

santoz
 
Posts: 8
Joined: Wed Sep 10, 2008 8:22 am
Location: Netherlands

Return to Spire.DataExport

cron