We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Comment.Text is sometimes falsely empty

Thread ID:





141101 Nov 23,2018 03:52 PM UTC Nov 26,2018 06:45 AM UTC WPF 1
Tags: XlsIO
Samuel Iseli
Asked On November 23, 2018 03:52 PM UTC

Please see the enclosed Visual Studio Solution and the Excel File comment.xlsx.

The code is very simple:

ExcelEngine excelEngine = new ExcelEngine();

IWorkbook workbook = excelEngine.Excel.Workbooks.OpenReadOnly(@"comment.xlsx");

foreach (ICommentShape comment in workbook.ActiveSheet.Comments)
        IRange range = workbook.ActiveSheet.Range[comment.Row, comment.Column];
        Console.WriteLine($"Cell {range.AddressLocal} - actual comment: {comment.Text} - expected: {range.Number}");               

It loops through the comments in the worksheet and writes them out to the console.
There is however a bug here: the last comment (cell A5) is empty - yet the Excel comment.xlsx does have a comment here...

Attachment: ExcelTest_22ad53cb.zip

Prakash Kumar D [Syncfusion]
Replied On November 26, 2018 06:45 AM UTC

Hi Samuel, 
Thank you for contacting Syncfusion support. 
We can reproduce the issue and have logged a defect report regarding this. The fix for this issue will be included in our 2018 volume 4 Service pack 1 release which will be rolled out at the end of January 2019 tentatively. 
Prakash Kumar 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon