Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

winform下用NOPI导出excel怎么写

$
0
0

SaveFileDialog sfd = new SaveFileDialog();
            sfd.FileName = ((DateTime)MonthEdit.EditValue).ToString("yyyyMM");
            sfd.DefaultExt = "xls";
            if (resultDt != null)
            
                #region
                                   try
                    {
                        string stitle = ((DateTime)MonthEdit.EditValue).ToString("yyyy年M月份 ";

                        ReportManage.ExportDaoChuDQ("报表", stitle, resultDt);
                        SuccessMessageBox("导出完成");
                    }
                    catch (Exception ex)
                    {
                        ErrorMessageBox("导出出错,错误信息:" + ex.Message);
                    }
                
                #endregion
           

作者:king_hh 发表于2013-5-24 13:34:13 原文链接
阅读:47 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>