Example #1
0
        public FileResult GetExcel(string contentKey, string fileName)
        {
            if (!s_savedBooks.TryRemove(contentKey, out var workbook))
            {
                throw new InvalidOperationException("Invalid key");
            }

            return(new FileResult(fileName, XlsGenerator.CreateExcel(workbook), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
        }
        private void 人申请表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var visainfos = GetDgvSelList();

            XlsGenerator.GetPre8List(visainfos, GetVisaListViaVisaInfoList(visainfos));
        }