Example #1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     UncertainityReport uR = new UncertainityReport();
     T = uR.Section4.ReportObjects["Text10"] as CrystalDecisions.CrystalReports.Engine.TextObject;
     T.Text = T.Text + " " + std_dev;
     T = uR.Section4.ReportObjects["Text11"] as CrystalDecisions.CrystalReports.Engine.TextObject;
     T.Text = T.Text + " " + mum_unc;
     T = uR.Section4.ReportObjects["Text12"] as CrystalDecisions.CrystalReports.Engine.TextObject;
     T.Text = T.Text + " " + least_count;
     T = uR.Section4.ReportObjects["Text14"] as CrystalDecisions.CrystalReports.Engine.TextObject;
     T.Text = T.Text + " " + error_speed;
     T = uR.Section4.ReportObjects["Text15"] as CrystalDecisions.CrystalReports.Engine.TextObject;
     T.Text = T.Text + " " + error_machine;
     uR.Refresh();
     crystalReportViewer1.ReportSource = uR;
     crystalReportViewer1.Show();
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     UncertainityReport rpt = new UncertainityReport();
     rpt.Site = this.Site;
     return rpt;
 }