private void toolStripBtnPrint_Click(object sender, EventArgs e) { FormReport fr = new FormReport(); fr.Show(); fr.ShowReport("ReportPerson.rdlc", "DataSetPerson", db.GetDataPerson()); }
private void btnReport_Click(object sender, EventArgs e) { FormReport fr = new FormReport(); fr.Show(); DataTable dt = db.GetEventReport(); fr.ShowReport("ReportEvent.rdlc", "DataSetReg", dt); }
public static void OpenReportPerson(DataTier db, DataGridView dgv, int rowIndex, int columnIndex) { if (rowIndex >= 0 && columnIndex >= 0 && !dgv.Rows[rowIndex].IsNewRow && dgv.Rows[rowIndex].Cells[columnIndex].OwningColumn == dgv.Columns["Report"]) { FormReport fr = new FormReport(); fr.Show(); int personId = int.Parse(dgv.Rows[rowIndex].Cells["Id"].Value.ToString()); fr.ShowReport("ReportPersonEvent.rdlc", "DataSetPersonEvent", db.GetPersonEvent(personId)); } }
public static void OpenReportReg(DataTier db, DataGridView dgv, int rowIndex, int columnIndex) { if (rowIndex >= 0 && columnIndex >= 0 && !dgv.Rows[rowIndex].IsNewRow && dgv.Rows[rowIndex].Cells[columnIndex].OwningColumn == dgv.Columns["Report"]) { FormReport fr = new FormReport(); fr.Show(); int eventId = int.Parse(dgv.Rows[rowIndex].Cells["Id"].Value.ToString()); fr.ShowReport("ReportEvent.rdlc", "DataSetReg", db.GetEventReport(eventId)); } }