-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: worksheet_write_comment() #38
Comments
I would be willing to look into this feature. I need this to process my excel files. Let me know if I can help. |
Thanks for the offer. Libxlsxwriter is mainly a port of the Python and Perl libraries that I wrote. I have the tests, docs and an API so in general I don't need help. What I do need is time to work on it and I've had even less of that recently than usual. |
Since I've had a few requests about this I've added a note about making donations to prioritize this feature. |
+1 |
can libxlsxwriter support the function of write_comments now ? |
@sevenyang2019 No. This issue would be closed if it was completed or updated if there was some progress. |
The initial version of comment support is available on the "vml" branch. You can now add comments to libxlsxwriter cells as follows: #include "xlsxwriter.h"
int main() {
lxw_workbook *workbook = workbook_new("comments1.xlsx");
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
worksheet_write_string( worksheet, 0, 0, "Hello" , NULL);
worksheet_write_comment(worksheet, 0, 0, "This is a comment");
return workbook_close(workbook);
} And get output like this: It only works when lxw_workbook_options constant_memory = LXW_FALSE (which is the default). I'll be adding more options and documentation in the next week or so but if anyone is feeling brave and would like to try it let me know how you get on. The eventual functionality will be like XlsxWriter: https://xlsxwriter.readthedocs.io/working_with_cell_comments.html |
I've added some additional functionality, more tests, and merged this up to master. Docs and further examples to be added. Note, please don't use the vml branch anymore since it has an issue. |
Added support for cell comments in constant_memory mode and also refactored the internal data structure for handling comments. Issue #38
Added support for cell comments in constant_memory mode and also refactored the internal data structure for handling comments. Issue #38
Added support for cell comments in constant_memory mode and also refactored the internal data structure for handling comments. Issue #38
The final version of this feature is now on master with docs and examples if anyone wants to try it. I will push it out to the packagers in the next few days. |
Upstream in version 0.92/0.93. |
Add
worksheet_write_comment()
function like the Python XlsxWriter Worksheet methodwrite_comment()
.See https://xlsxwriter.readthedocs.io/working_with_cell_comments.html
Add +1 as a comment to vote for this feature and to get an update when it is implemented.
If you would like to make a donation to accelerate this feature you can do so via PayPal or contact me directly. Currently $0 of $800.
The text was updated successfully, but these errors were encountered: