Exemplo n.º 1
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dvgPartyAddressBook, "Party Address Book", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("PAB:17 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvReport, "Ageing Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR27:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvAdvancePayment, "Advance Payment Report", 0, 0, "Excel", txtFromDate.Text, txtToDate.Text, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("APR:21" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }