public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PD_IN_P rpt = new PD_IN_P(); rpt.Site = this.Site; return(rpt); }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { if (bunifuCheckbox1.Checked == true) { PR_Date MyReport = new PR_Date(); MyReport.SetParameterValue("App", date1); PR_IN_DataF myform = new PR_IN_DataF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } if (bunifuCheckbox2.Checked == true) { PR_IN_P MyReport = new PR_IN_P(); MyReport.SetParameterValue("IDP", this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); PR_IN_PF myform = new PR_IN_PF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } if (bunifuCheckbox3.Checked == true) { PD_IN_P MyReport = new PD_IN_P(); MyReport.SetParameterValue("PName", this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); PD_IN_PF myform = new PD_IN_PF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } if (bunifuCheckbox4.Checked == true) { PR_IN_PD MyReport = new PR_IN_PD(); MyReport.SetParameterValue("PName", this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); MyReport.SetParameterValue("App", this.dataGridView1.CurrentRow.Cells[3].Value.ToString()); PR_IN_PDF myform = new PR_IN_PDF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } if (bunifuCheckbox5.Checked == true) { DD MyReport = new DD(); DDF myform = new DDF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } if (bunifuCheckbox6.Checked == true) { DS MyReport = new DS(); DSF myform = new DSF(); myform.crystalReportViewer1.ReportSource = MyReport; myform.ShowDialog(); } }