Open bhaveshletter opened 11 years ago
Hi, I am having the same problem, seems that the fill is not working, the bgColor & fgColor colors are ignored and the background has a black and white fill pattern which is always the same.
Hi, I am having the same problem regarding the bgColor and fgColor. All it is coming out as a black dots.
Hi, I am also having the same problem. :(
+1
I'm seeing the same issue.
@chuanyi - I know you're likely to say issue a PR, but do you have any comment on this?
Cheers.
Sorry, just spotted this:
https://github.com/aloteot/msexcel-builder/commit/08bac71924eaa3b4aec84c26f8df3d32073d85da
Is this likely to be merged?
Same problem here.. is there a solution?
I ended up using the forked and fixed one here: https://github.com/aloteot/msexcel-builder
Let us know what you end up doing.
Thank you so much, that works flawlessly! You just made my day!
There's no way to set the font color, right?
I can't remember. I have some code somewhere, will hunt it down to see.
Ended up using forked version. @matthiasforgit or anyone else who stumbles across this: although its not in the API docs if you look at the code font color can be changed. example:
sheet.font(col, row, {color: 'FFFFFFFF'});
changes font for that cell to white.
Same issue here. This is how the sample code looks like:
Color problems were fixed in this npm package:
npm install msexcel-builder-extended
In order to make it work, use:
sheet.font(col, row, {color: 'FFFFFF'}); // Text color, in HEX
sheet.fill(col,row,{type:'solid',fgColor:'000000'}) // Background color (Yes, background color), in HEX
It worked for me.
Thank you for the extended version. It works like a charm :-)
I tried as below to fill color into cell
sheet1.fill(3, 3, {type:'solid',fgColor:'8',bgColor:'64'});
In place of color it fills by pattern.