You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to export excel with comments using Open Xml. I have tried with below code snippet and its showing comments in the Sheet Object but when exported to excel the comments are not displaying in the cells after opening excel.
The code uses the removed SpreadsheetDocument.Close() method that must be replaced with the SpreadsheetDocument.Dispose() method.
In addition to the comment part, the code needs to add a Vml Drawing Part for the comment part
The cell must exist in the sheet for the comment to show, i.e. not just an empty SheetData element.
Also, for newer/current versions of Excel, it is better to use the new threaded comments. Here is a sample for threaded comments. If you need to use the old comments part, this Stack Overflow post has some helpful information.
0
We are trying to export excel with comments using Open Xml. I have tried with below code snippet and its showing comments in the Sheet Object but when exported to excel the comments are not displaying in the cells after opening excel.
Please let me know what is the issue with the code and how can we show comments for particular cell.
The text was updated successfully, but these errors were encountered: