/// <summary>
        /// 打印
        /// </summary>
        private void printpage(ref Neusoft.FrameWork.WinForms.Classes.Print print)
        {
            if (this.ucDataFileLoader1.CurrentLoader == null)
            {
                return;
            }
            if (this.ucDataFileLoader1.CurrentLoader.dt == null)
            {
                return;
            }
            if (this.ucDataFileLoader1.CurrentLoader.dt.ID == "")
            {
                return;
            }

            ((Neusoft.FrameWork.EPRControl.emrPanel) this.ucDataFileLoader1.CurrntPanel).AutoScrollPosition = new Point(0, 0);


            Neusoft.HISFC.Models.Base.PageSize page = Common.Classes.Function.GetPageSize(pageName);

            if (page != null)
            {
                print.SetPageSize(page);
                if (page.Memo.Trim().Length == 1)
                {
                    print.ControlBorder = (Neusoft.FrameWork.WinForms.Classes.enuControlBorder)Neusoft.FrameWork.Function.NConvert.ToInt32(page.Memo);
                }
                else
                {
                    print.ControlBorder = Neusoft.FrameWork.WinForms.Classes.enuControlBorder.Line;
                }
            }
            else
            {
                print.ControlBorder = Neusoft.FrameWork.WinForms.Classes.enuControlBorder.Line;//default
            }

            bool autoExtend = ((Neusoft.FrameWork.EPRControl.emrPanel) this.ucDataFileLoader1.CurrntPanel).自动分页;

            print.IsDataAutoExtend = !autoExtend;
            print.IsHaveGrid       = autoExtend;
            print.IsPrintInputBox  = false;
            Neusoft.FrameWork.WinForms.Classes.PrintControlCompare p = new Neusoft.FrameWork.WinForms.Classes.PrintControlCompare();
            p.SetEPRControl();
            print.SetControlCompare(p);
            print.IsPrintBackImage = false;

            //设置控件打印状态
            print.PrintPreview(this.ucDataFileLoader1.CurrntPanel);
        }
        private void continuePrint(Control c, int page, bool bTitle, Control panel)
        {
            ((Neusoft.FrameWork.EPRControl.emrPanel)panel).AutoScrollPosition = new Point(0, 0);

            Neusoft.FrameWork.WinForms.Classes.Print print = new Neusoft.FrameWork.WinForms.Classes.Print();
            //if (page == 0) page = 1;
            Common.Classes.Function.GetPageSize("EMR", ref print);
            //print.PrintDocument.DefaultPageSettings.PrinterSettings.FromPage = page;
            //print.PrintDocument.DefaultPageSettings.PrinterSettings.ToPage = 100;
            print.IsPrintInputBox  = !bTitle;
            print.IsPrintBackImage = false;
            print.IsDataAutoExtend = false;
            print.IsHaveGrid       = true;
            if (bTitle == false)
            {
                setOtherControlVisible(false, panel);
            }
            ((RichTextBox)c).Select(0, 0);
            ((RichTextBox)c).ScrollToCaret();

            Neusoft.FrameWork.WinForms.Classes.PrintControlCompare p = new Neusoft.FrameWork.WinForms.Classes.PrintControlCompare();
            p.SetEPRControl();
            print.SetControlCompare(p);

            print.PageLabel = ((Neusoft.FrameWork.EPRControl.emrPanel)panel).PageNumberControl;
            //print.DrawGraphic(this.pictureBox1.CreateGraphics(),panel);
            string file = Neusoft.FrameWork.WinForms.Classes.Function.CurrentPath + Neusoft.FrameWork.WinForms.Classes.Function.TempPath + "1.bmp";

            print.SaveAsFile(panel, file, page);
            System.IO.StreamReader reader = new System.IO.StreamReader(file);

            this.pictureBox1.Image = Image.FromStream(reader.BaseStream);
            reader.Close();
            if (bTitle == false)
            {
                setOtherControlVisible(true, panel);
            }
            c.Tag = this.StartLength;
        }
        private void continuePrint(Control c, int page, bool bTitle, Control panel)
        {
            ((Neusoft.FrameWork.EPRControl.emrPanel)panel).AutoScrollPosition = new Point(0, 0);

            Neusoft.FrameWork.WinForms.Classes.Print print = new Neusoft.FrameWork.WinForms.Classes.Print();
            if (page == 0)
            {
                page = 1;
            }
            Common.Classes.Function.GetPageSize("EMR", ref print);
            print.PrintDocument.DefaultPageSettings.PrinterSettings.FromPage = page;
            print.PrintDocument.DefaultPageSettings.PrinterSettings.ToPage   = 100;
            print.IsPrintInputBox  = !bTitle;
            print.IsPrintBackImage = false;
            print.IsDataAutoExtend = false;
            print.IsHaveGrid       = true;
            if (bTitle == false)
            {
                setOtherControlVisible(false, panel);
            }
            ((RichTextBox)c).Select(0, 0);
            ((RichTextBox)c).ScrollToCaret();

            Neusoft.FrameWork.WinForms.Classes.PrintControlCompare p = new Neusoft.FrameWork.WinForms.Classes.PrintControlCompare();
            p.SetEPRControl();
            print.SetControlCompare(p);

            print.PageLabel = ((Neusoft.FrameWork.EPRControl.emrPanel)panel).PageNumberControl;
            //this.ucDataFileLoader1.CurrentLoader.bNew = true;
            print.PrintPage(0, 0, panel);
            //this.ucDataFileLoader1.CurrentLoader.bNew = false;

            if (bTitle == false)
            {
                setOtherControlVisible(true, panel);
            }
            c.Tag = c.Text.Length;
        }