Shape and font for Comments

3 views
Skip to first unread message

ludovi...@gmail.com

unread,
Apr 26, 2018, 12:06:41 PM4/26/18
to JExcel Forum
Hello

Is there a way to change the font of the comment content ? And also the Shape of the box to be fully displayed ?

myWorkbook.getOleMessageLoop().doInvokeAndWait(new Runnable() {
               
public void run() {
                   
Cell cell = sheet.getCell("G5");
                    cell
.getPeer().addComment(new Variant("The comment"));
                    cell
.setAutoDelete(false);
                    cell
.release();
                   
               
}
           
});

Thanks



Natasha Dmitrieva

unread,
Apr 26, 2018, 2:16:17 PM4/26/18
to Ludovic Goix, JExcel Forum
Hello Ludovic,
Thank you for your email.

Yes, it is possible to change both the font and the shape of the comment.

I'm attaching a sample that demonstrates how to make such changes for the comment.

Regards,
Natasha
--
You received this message because you are subscribed to the Google Groups "JExcel Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jexcel-forum...@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/jexcel-forum/027505b0-5904-4264-b7d8-a32c938426b6%40teamdev.com.
CommentSample.java

ludovi...@gmail.com

unread,
Apr 26, 2018, 4:01:34 PM4/26/18
to JExcel Forum, ludovi...@gmail.com
Thanks :)
Reply all
Reply to author
Forward
0 new messages