netcoreprint打印数据 var rs = pn.GetYSBHListExcel(strWhere);
string excelName = DateTime.Now.ToString("yyyyMmddHHmmss");
if (!String.IsNullOrEmpty(excelname))
{
excelName = excelname;
}
var buffer = IO.printExcel(rs.Data, excelName);
return File(buffer, "application/vnd.ms-excel", PubSetting.UserName + excelName + ".xlsx");
1