Hello,
I am trying to export a radPivotGrid into excel as per the documentation
private void radButton1_Click(object sender, EventArgs e)
{
SaveFileDialog sf = new SaveFileDialog();
sf.Filter = "EXCEL | .xls";
if (sf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
// Telerik.WinControls.UI.Export.ExportToExcelML htmlexport = new Telerik.WinControls.UI.Export.ExportToExcelML(radPivotGrid_StockPositionPivot);
// htmlexport.RunExport(sf.FileName);
PivotGridSpreadExport spreadExport = new PivotGridSpreadExport(radPivotGrid_StockPositionPivot);
spreadExport.RunExport(@"..\..\exported-file.xlsx", new SpreadExportRenderer());
}
}
the red marked position is throwing an exception, and code suggestion is asking to create a new class to implement SpreadExortRenderer I am not sure how it can be done, any help will be appreciated. TIA