Problema con exportar

Buenos días
estoy intentando exportar este grid 
<ej:Grid runat="server" ID="GdReporteAGENDA" AllowGrouping="true" AllowReordering="true" AllowSorting="true" 
     OnServerPdfExporting="GdReporteAGENDA_ServerPdfExporting" OnServerExcelExporting="GdReporteAGENDA_ServerExcelExporting" AllowPaging="True" Locale="es-ES">
    <ToolbarSettings ShowToolbar="true" ToolbarItems="excelExport,pdfExport"></ToolbarSettings>
     <GroupSettings EnableDropAreaAutoSizing="False" GroupedColumns="NOSHOW"></GroupSettings>
            <Columns>
                <ej:Column Field="PLACA" HeaderText="PLACA" />
                <ej:Column Field="FECHAI" HeaderText="FECHA REC" Format="{0:dd/MM/yyyy H:mm:ss}" />
                <ej:Column Field="FECHAF" HeaderText="FECHA ENT"  Format="{0:dd/MM/yyyy H:mm:ss}" />
                <ej:Column Field="DETALLE" HeaderText="DETALLE"  />
                <ej:Column Field="USERID" HeaderText="USUARIO"  />
                <ej:Column Field="PRIORIDAD" HeaderText="PRIORIDAD"  />
                <ej:Column Field="NOSHOW" HeaderText="NOSHOW"  />
                <ej:Column Field="INGPROCESO" HeaderText="PROCESO"  />
            </Columns>          
</ej:Grid> 

dentro de C# 

 protected void GdReporteAGENDA_ServerExcelExporting(object sender, Syncfusion.JavaScript.Web.GridEventArgs e)
        {

            ExcelExport exp = new ExcelExport();
            GridProperties obj = ConvertGridObject(e.Arguments["model"].ToString());
            GridExcelExport exp1 = new GridExcelExport() { IsTemplateColumnIncluded = true, Theme = "flat-lime", FileName = "Export.xlsx" };
            exp.Export(obj, (IEnumerable)GdReporteAGENDA.DataSource, exp1);
        }

pero me sale el siguiente error      

Attachment: imgExport_ed92b427.zip

1 Reply

KM Kuralarasan Muthusamy Syncfusion Team April 10, 2018 01:10 PM UTC

Hi Veronica, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we are not able reproduce the reported issue in our sample. So we have prepared the sample with your requirement. 

We have already discussed about this issue in Syncfusion knowledge base document. Please refer the following link to kb: 


Please refer the following link to sample: 


If you face the same issue till now, Please share the following details, 
 
  1. Please make ensure that columns you have given are defined in the datasource. 
  2. If possible replicate the issue in the above sample and send us back. 
  3. Share your Essential Studio version.

Regards, 
Kuralarasan M. 


Loader.
Up arrow icon