Hi
I am new on this form. I am using Dhtmlx Grid in my asp.net application i want to export the grid data in to excel. For that i have download the (grid-excel-net) and dhtmlxgrid_export.js file and put the grid-excel-net folder in my project folder and js file in my js folder.
But i am not able to export the data in excel and i am also getting compile time error (Could not create type ‘Generator.Generator’.
So please give me sample code.
thanks ,
Indramani.
Hi,
make sure that class name in the Class attribute of the web handler definition matches the class declaration in code(missing or incorrect namespaces can cause this error)
[code]<<%@ WebHandler Language=“C#” Class=“Generator” %>
using System.Web;
using DHTMLX.Export.PDF;
public class Generator : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
…
}
public bool IsReusable
{
get
{
return false;
}
}
}[/code]
AliakSandr, what we should do once we match both files, the ashx and ashx.cs? DO we have to compile something? In my system, these files are on /codebase/grid-excel-net/.
I have a folder /codebase/grid-excel-net/lib and /codebase/grid-excel-net/src but I have no idea what I have to do with those… I would really need a hand on getting this grid-to-excel feature installed
thanks in advance
(I’m a rookie using DHTMLX)