Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
     }
 }