Hi,
I'm using the following method to export a radgrid report to Excel:
ExportSettings-Excel-Format="Xlsx"
and in the codebehind:
protected
void
btnExport_Click(
object
sender, EventArgs e)
{
rgLTDAccount.ExportSettings.OpenInNewWindow =
true
;
rgLTDAccount.ExportSettings.IgnorePaging =
true
;
rgLTDAccount.ExportSettings.UseItemStyles =
true
;
rgLTDAccount.ExportSettings.FileName =
lblFileName.Text;
rgLTDAccount.ExportSettings.ExportOnlyData =
false
;
rgLTDAccount.MasterTableView.ExportToExcel();
}
I'm trying to insert a custom header at the top of the report with a few rows of contextual data from codebehind. I've seen some samples for html and biff, but not xlsx format. I can adjust a few things like row height in the InfrastructureExporting method, but I can't figure out if it's possible to insert rows and add text to them. Any help greatly appreciated.
Thanks.
-Dan