I have created an Excel spreadsheet using Aspose Cells. I used the example code to add a cell comment. This worked as expected. I now need to read the Excel spreadsheet and retrieve those cell comments. I cannot get this to work.
This is the code I am using:
private string GetComment(Worksheet worksheet, int row, int col)
Comment comment = worksheet.Comments[row, col];
if (comment != null) return comment.Note;
I have attached the Excel spreadsheet I am trying to retrieve the cell comments from.
The comment is located on the first tab (named “Operating”) in cell J10.