public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptLuongnvtheothang rpt = new rptLuongnvtheothang(); rpt.Site = this.Site; return(rpt); }
private void btnPreview_Click(object sender, EventArgs e) { rptLuongnvtheothang report = new rptLuongnvtheothang(); String query = "EXEC SP_LUONGNVTRONGTHANG " + cmbThang.Text + "," + cmbNam.Text; DataTable dt = Program.ExecSqlDataTable(query); report.SetDataSource(dt); report.SetParameterValue("THANG", cmbThang.Text); report.SetParameterValue("NAM", cmbNam.Text); report.SetParameterValue("CHINHANH", Program.tenchinhanh); rptView.ReportSource = report; }