Telerik RadControls for WPF Q1 2011 SP1
I have a grid hierarchy, I want to Export to Exel.
I used this code, but I don't have anything of the Grid Hierarchy in Excel
I read foros where the controls don't support this Export to Excel.
Please, really I need your help.
I have a grid hierarchy, I want to Export to Exel.
I used this code, but I don't have anything of the Grid Hierarchy in Excel
SaveFileDialog dialog =
new
SaveFileDialog();
dialog.DefaultExt = extension;
dialog.Filter = String.Format(
"{1} files (*.{0})|*.{0}|All files (*.*)|*.*"
,
"xls"
,
"Excel"
);
dialog.FilterIndex = 1;
if
(dialog.ShowDialog() ==
true
)
{
using
(Stream stream = dialog.OpenFile())
{
GridViewExportOptions exportOptions =
new
GridViewExportOptions();
exportOptions.Format = format;
exportOptions.ShowColumnFooters =
true
;
exportOptions.ShowColumnHeaders =
true
;
exportOptions.ShowGroupFooters =
true
;
RadGridView1.Export(stream, exportOptions);
}
}
I read foros where the controls don't support this Export to Excel.
Please, really I need your help.