Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
 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);
     }
 }