private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { ReportCustomer rep = new ReportCustomer(); rep.SetDatabaseLogon("proyek", "1"); rep.SetParameterValue("bulan", comboBox1.Text); crystalReportViewer1.ReportSource = rep; }
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; }