Subject: | enable cell-comments |
I needed to create an Excel with comments, so I patched
Excel::Template::Element::Cell accordingly.
Here is the patch:
--- Cell.pm Wed Feb 16 09:22:18 2011
+++ Cell.pm i Tue Feb 15 15:51:10 2011
@@ -99,6 +99,16 @@
$context->active_format,
);
+ if (my $comment = $context->get($self, 'COMMENT'))
+ {
+ $context->active_worksheet->write_comment(
+ $row, $col,
+ $comment,
+ ) if $comment gt ' ';
+ }
+
return 1;
}
Hope something like this makes it into the next release.
Best regards,
Bernd