public void sendtoexcel_Click(object sender, EventArgs e)
        {
            string xlsFile = string.Empty;

            //WORD格式的报表不允许发送EXCEL
            if (curReport != null && !curReport.IsDoc && XLSFile.ShowSaveFile(ref xlsFile, curReport.DesrcName))
            {
                curReport.InitReportData(projectDataManager, 0);
                curReport.MutliProjectSendToExcel(xlsFile);
                Function.Alert("发送成功!", "提示");
            }
        }
Ejemplo n.º 2
0
        private void sendToXls_Click(object sender, EventArgs e)
        {
            string xlsFilePath = "";

            if (XLSFile.ShowSaveFile(ref xlsFilePath, report.DesrcName))
            {
                if (report.ProjectDataManager != null)
                {
                    report.MutliProjectSendToExcel(xlsFilePath);
                }
                else
                {
                    report.SendToExcel(xlsFilePath);
                }

                Function.Alert("发送完成!", "提示");
            }
        }