in some random case for the same dataset after binding data to Excel using Aspose.Cells data is shuffled randomly , it’s not like data is shifted. But if we re-prepare the excel it looks fine. Below is the code snippet.
List baseList = originalList
.Select(x => new GSTR2BReconDataModelPR6
{
ReconciliationRemarks = x.ReconciliationRemarks,
SubStatus = x.SubStatus,
Gstin = x.Gstin,
PrPeriod = x.PrPeriod,
PrVendorGstin = x.PrVendorGstin,
PrDocumentType = x.PrDocumentType,
PrDocumentNumber = x.PrDocumentNumber,
PrDocumentDate = x.PrDocumentDate,
PrDocumentValue = x.PrDocumentValue,
PrTaxablevalue = x.PrTaxablevalue,
PrIgst = x.PrIgst,
PrCgst = x.PrCgst,
PrSgst = x.PrSgst,
PrCess = x.PrCess,
Period = x.Period,
G2bCtin = x.G2bCtin,
G2bDocumentType = x.G2bDocumentType,
G2bDocumentNumber = x.G2bDocumentNumber,
G2bDocumentDate = x.G2bDocumentDate,
G2bDocumentValue = x.G2bDocumentValue,
G2bTaxablevalue = x.G2bTaxablevalue,
G2bIgst = x.G2bIgst,
G2bCgst = x.G2bCgst,
G2bSgst = x.G2bSgst,
G2bCess = x.G2bCess,
DiffTaxVal = x.DiffTaxVal,
DiffIGST = x.DiffIGST,
DiffCGST = x.DiffCGST,
DiffSGST = x.DiffSGST,
DiffCess = x.DiffCess
})
.ToList();
ImportTableOptions options = new ImportTableOptions();
options.IsFieldNameShown = false;
worksheet.Cells.ImportCustomObjects(baseList, 1, 0, options);
We are running with aspose.cells version 22.9.0 and we r using licensed version also.
Please check and confirm asap.