public int OpenRpt(MReport mReport, MStudy mStudy, string Path) { this.winWordControl.CloseControl(); if (!Directory.Exists(Pacstemp)) { Directory.CreateDirectory(Pacstemp); } string TempPath = Pacstemp + DateTime.Now.ToString("yyyyMMddhhmmssFFF") + mReport.EXAM_NO + ".doc"; File.Copy(Path, TempPath, true); int i = wClass.PacsWordInit(mReport, mStudy, TempPath); return(i); }
private bool DisplayWord(string Path) { if (word.PacsWordInit(this.mReport, this.mStudy, Path) == -1) { MessageBoxEx.Show("打开报告失败,请重新打开!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); this.Visible = false; return(false); } else { this.Visible = true; return(true); } }