private void ReportMode_DoubleClick(object sender, EventArgs e) { if (currReport != null) { PreviewReport viewDialog = new PreviewReport(currReport); viewDialog.Show(); Repaint(currReport); } }
public void preivew_Click(object sender, EventArgs e) { if (curReport != null) { if (curReport.IsDoc) { //打印WORD格式报表 ReportHelper.OpenWord(curReport.DocPath); } else { curReport.InitReportData(projectDataManager, 0); PreviewReport viewDialog = new PreviewReport(curReport); viewDialog.Show(); Repaint(); } } }