Beispiel #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(dgvDebitNoteReport, "Debit Note Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("DRNTREP23: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <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(dgvProductBatch, "Product Batch Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show(" PVSBR:23" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #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(dgvSalaryPackageDetails, "Salary Package Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("SPDR:10" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <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(dgvMonthlySalary, "Monthly Salary Report", 0, 0, "Excel", txtFromDate.Text, txtToDate.Text, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("MSR:23" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }