Here is a link to a code that uses apache 3.7.
How can i edit this code to get the comments in excel file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Comments are stored in a different stream (Document Part) to the sheet, so you’d need to navigate from the sheet to the comments (if present) and parse that
The relation will be of type
XSSFRelation.SHEET_COMMENTSAs the comments part is normally fairly small, you should be fine to just access it using normal UserModel code.
CommentsTableis the class that will give you easy access to it, pass that comments part and the relation from the sheet and work your way through the comments in turnIf you get it working, send a patch to POI so it gets included in future!