JV Report Modification Done
This commit is contained in:
parent
87ec71597d
commit
9fd96662d7
|
|
@ -95,6 +95,9 @@ namespace Payroll.UI
|
||||||
}
|
}
|
||||||
// dt.Rows.Add("", "", "", "Total", nDebit.ToString(), nCredit.ToString());
|
// dt.Rows.Add("", "", "", "Total", nDebit.ToString(), nCredit.ToString());
|
||||||
// GlobalFunctions.ExportToExcel(dt, savefile.FileName, "Sheet1");
|
// 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);
|
GlobalFunctions.ToCSV(dt, savefile.FileName);
|
||||||
MessageBox.Show("Excel created at " + savefile.FileName,"Exported",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
MessageBox.Show("Excel created at " + savefile.FileName,"Exported",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user