Beispiel #1
0
 private void button16_Click(object sender, EventArgs e)
 {
     try
     {
         customerReport1 = new CustomerReport();
         customerReport1.Load("../../CustomerReport.rpt");
         my_rpt = new Reporting1();
         my_rpt.crystalReportViewer1.ReportSource = customerReport1;
         my_rpt.crystalReportViewer1.RefreshReport();
         my_rpt.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 private void button16_Click(object sender, EventArgs e)
 {
     try
     {
         customerReport1 = new CustomerReport();
         customerReport1.Load("../../CustomerReport.rpt");
         my_rpt = new Reporting1();
         my_rpt.crystalReportViewer1.ReportSource = customerReport1;
         my_rpt.crystalReportViewer1.RefreshReport();
         my_rpt.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }