FastReport 打印设计

      /// 
        /// 打印设计
        /// 
        /// 
        /// 
        private void button1_Click(object sender, EventArgs e)
        {
            IList targetinfolist = new List();
            targetinfolist.Add(TargetinfoDao.t_targetinfoDto);

            FastReport.Report report = new FastReport.Report();
            FastReport.Utils.Res.LocaleFolder = Application.StartupPath;
            FastReport.Utils.Res.LoadLocale(FastReport.Utils.Res.LocaleFolder = @"bin\Debug\Chinese (Simplified).frl");

            report.RegisterData(targetinfolist, "目标色信息");
            report.RegisterData(TargetinfoDao.t_targetinfoDto.t_targetcolorbywavelength, "波长信息");
            report.RegisterData(JsonTableHelper.ToDataTable(SystemDao.SystemDto.ToJson()), "系统信息");
            report.Design();
        }

 

你可能感兴趣的:(C#)