예제 #1
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ReportCustomer rep = new ReportCustomer();

            rep.SetDatabaseLogon("proyek", "1");
            rep.SetParameterValue("bulan", comboBox1.Text);
            crystalReportViewer1.ReportSource = rep;
        }
예제 #2
0
        private void FormReportCustomer_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            comboBox1.Text       = "May";
            ReportCustomer rep = new ReportCustomer();

            rep.SetDatabaseLogon("proyek", "1");
            rep.SetParameterValue("bulan", comboBox1.Text);
            crystalReportViewer1.ReportSource = rep;
        }