private void btnExport_Click(object sender, EventArgs e) { try{ ConvertFormat.ExportDataTableToPdf(dataGridActivity, "Admin Log Records", "Admin Log Records"); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nOperation Failed", "Export Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnPdf_Click(object sender, EventArgs e) { try { ConvertFormat.ExportDataTableToPdf(dataGridEvents, "Other Fees List", "Other Fees List"); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nOperation Failed", "Export Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnpdf_Click(object sender, EventArgs e) { try { ConvertFormat.ExportDataTableToPdf(dataGridDebtors, "DEBTORS LIST", "DEBTORS LIST"); this.Close(); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nOperation Failed", "Export Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnPDF_Click(object sender, EventArgs e) { try { schoolInfor sch = new schoolInfor(); ConvertFormat.ExportDataTableToPdf(dataGridViewRecords, "Daily pay Record", "Daily pay Record"); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nOperation Failed", "Export Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnEventPdf_Click(object sender, EventArgs e) { ConvertFormat.convertToPDF(dataGridEventList, "Event Fees Record"); try { ConvertFormat.ExportDataTableToPdf(dataGridEventList, "Event Fees Record", "Event Fees Record"); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nOperation Failed", "Export Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }