Skip to content
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

Issue with formatting #10

Closed
ricardas opened this issue Oct 7, 2015 · 2 comments
Closed

Issue with formatting #10

ricardas opened this issue Oct 7, 2015 · 2 comments

Comments

@ricardas
Copy link

ricardas commented Oct 7, 2015

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
Copy link
Owner

That is the documented behavior. See the Workong with Formats section of the docs.

@ricardas
Copy link
Author

ricardas commented Oct 7, 2015

Oh, i didn't notice that. All is clear now, thanks.

@ricardas ricardas closed this as completed Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants