/// <summary>
/// 打印设计
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
IList<Model.t_targetinfo> targetinfolist = new List<Model.t_targetinfo>();
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();
}