netcoreprint打印数据 var rs = pn.GetYSBHListExcel(strWhere); string excelName = DateTime.Now.ToString("yyyyMmddHHmmss"); if (!String.IsNullOrEmpty(excelname)) { excelName = excelname; } var buffer = IO.printExcel(rs.Data,