mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #10] Issue with formatting #7
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ricardas on GitHub (Oct 7, 2015).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/10
This is snippet from my code:
lxw_format *format = workbook_add_format(workbook);
format_set_font_color(format, 0xff0000); // set red color
worksheet_write_string(worksheet, 0, 0, "Red", format); // write to cell
format_set_font_color(format, 0x00ff00); // set green color
worksheet_write_string(worksheet, 0, 1, "Green", format); // write to another cell
why both cells have green font color?
@jmcnamara commented on GitHub (Oct 7, 2015):
That is the documented behavior. See the Workong with Formats section of the docs.
@ricardas commented on GitHub (Oct 7, 2015):
Oh, i didn't notice that. All is clear now, thanks.