Hello,
It seems that sorting Excel data with sorting feature in XlsIo does not take comments with the sorted cells. Comments leave into the original location even the main cell data is moved correctly. Very strange.
Anyone else noticed the same?
Comments added like this:
var comment = cell.AddComment();
comment.Text = downloadCountResult.Comment;
Sorting done like this:
IDataSort sorter = workbook.CreateDataSorter();
sorter.SortRange = sheet.UsedRange;
ISortField sortField = sorter.SortFields.Add(1, SortOn.Values, OrderBy.Descending);
sorter.Sort();
Hello,
Thank you for the answer. For me, the sorting feature is therefore limb when using comments. Hope this crucial feature is made sooner or later.
Workaround is naturally sort the data already in C# code and wrote it in place already sorted and after that add needed comments. Or alternatively made sorting via Excel desktop software.
Thanks.