Quantcast
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: Variable length comment in excel file cell using NPOI [13238]

I want to know how to create variable length comment box using NPOI.

Code that we are using to insert comment is this:-

Comment c = drawing.createCellComment (new HSSFClientAnchor(0, 0, 0, 0, 0, 0, 6, 5));
in this case it will span the number of columns and rows mentioned in the constructor.

However if the string length inside comment box can vary for each cell and Comments should be inserted dynamically for each cell then we do not know before hand how many columns or rows the comment box should span.

Any help in this would be greatly appreciated.

Thanks
Ashwinee

Viewing all articles
Browse latest Browse all 1621

Trending Articles