JV Report Modification Done

This commit is contained in:
Shahadat Hossain 2026-11-09 15:46:30 +06:00
parent 87ec71597d
commit 9fd96662d7

View File

@ -95,6 +95,9 @@ namespace Payroll.UI
}
// dt.Rows.Add("", "", "", "Total", nDebit.ToString(), nCredit.ToString());
// GlobalFunctions.ExportToExcel(dt, savefile.FileName, "Sheet1");
// ToCSV walks dt.Rows, so the sorted view has to be materialized into a table.
dt.DefaultView.Sort = "[GL Name] ASC";
dt = dt.DefaultView.ToTable();
GlobalFunctions.ToCSV(dt, savefile.FileName);
MessageBox.Show("Excel created at " + savefile.FileName,"Exported",MessageBoxButtons.OK,MessageBoxIcon.Information);
}