Ejemplo n.º 1
0
        /// <summary>
        /// 初始化设置
        /// </summary>
        public void Init()
        {
            reportViewer1 = new ReportViewer();
            //reportViewer1.Visible = true;
            reportViewer1.BringToFront();
            //reportViewer1.Dock = DockStyle.Fill;
            reportViewer1.LocalReport.EnableExternalImages = true;
            reportViewer1.RenderingComplete += ReportView_RenderingComplete;
            //InitData(batchnumber);
            if (!Directory.Exists(Config.TempleAddress))
            {
                Directory.CreateDirectory(Config.TempleAddress);
            }

            //PageSettings ps = Config.GetPageSettings();
            //reportViewer1.SetPageSettings(ps);
            //reportViewer1.PrinterSettings = ps.PrinterSettings;
            //reportViewer1.LocalReport.ReportPath = Config.TemplateLocation(PrintData.PrintTemplate.FileName);
        }