Hi Team,
We have used import excel sheet feature to load data into our database. so user can re-upload many times same excel. is there any way we can identify to track only changes in the excel or updated columns and rows? or is there any way we can compare two same type of workbook objects for differences to identify
updates or modifications and load those data into our database rather than loading all the data.
Please let me know if you need more information on the same. need this info ASAP
we use below code to load data into datatable C#
List<DataTable> allWorksheets = new List<DataTable>();
currentFile as stream
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2016;
IWorkbook workbook = application.Workbooks.Open(currentFile);
foreach (var sheet in workbook.Worksheets)
{
sheet.UsedRangeIncludesFormatting = false;
allWorksheets.Add(sheet.ExportDataTable(sheet.UsedRange,
ExcelExportDataTableOptions.ColumnNames |
ExcelExportDataTableOptions.ComputedFormulaValues));
}