Hi,
I am trying to export radgrid to excel but I am getting "object reference not set to the istance of the object" error when I am trying to export in ExcelML format. Below is the code I am using:
I am trying to export radgrid to excel but I am getting "object reference not set to the istance of the object" error when I am trying to export in ExcelML format. Below is the code I am using:
protected
void btnExportExcel_Click(object sender, ImageClickEventArgs e)
{
//ConfigureExport();
this.radMainGrid.ExportSettings.OpenInNewWindow = true;
this.radMainGrid.ExportSettings.ExportOnlyData = true;
this.radMainGrid.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
this.radMainGrid.MasterTableView.ExportToExcel();
}
I am using a trial version of radgrid, is it bcoz of this that I am getting this error.
This is very urgent, please reply soon.