我正在尝试使用以下代码导出excel文件:
private List<Sheet> PrepareExport(ReportsViewModel model)
{
List<Sheet> sheets = new List<Sheet>();
Sheet sheet = new Sheet() { Name = Resource.Report };
//ReportsViewItem resultReport = model.ResultReport;
sheet.FilterData.Add(Resource.Date, "");
sheet.FilterData.Add(Resource.DeliveryNumber, "");
sheet.FilterData.Add(Resource.Silo, "");
sheet.FilterData.Add(Resource.Action, "");
sheets.Add(sheet);
return sheets;
}
I get result of reported file like this
但是我想直接设置那些“标题”。