Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

BackColor Bug #23

Closed
Thaledwyn opened this issue Sep 18, 2018 · 2 comments
Closed

BackColor Bug #23

Thaledwyn opened this issue Sep 18, 2018 · 2 comments
Labels

Comments

@Thaledwyn
Copy link

Thaledwyn commented Sep 18, 2018

I used your Hello World example to play around with the BackColor feature.

When I do the following:

    Dim sheet = New Worksheet("Hello, world!")
    sheet.Cells(0, 0) = "Hello,"
    sheet.Cells("B1") = "World!"
    sheet.Cells(0, 0).Fill.BackgroundColor = Color.Blue
    sheet.Cells("B1").Fill.BackgroundColor = Color.Red
    Dim workbook = New Workbook()
    workbook.Add(sheet)
    workbook.Save(Application.StartupPath & "\test.xlsx")

both cells have a blue backcolor.

When I first create two cells, add format and assign them to the sheet, I get the same behaviour.

What is wrong?
I'm using VS2013 with target framework 4.5.

@mstum mstum added the 2.2.0 label Sep 18, 2018
@mstum
Copy link
Owner

mstum commented Sep 18, 2018

Will check, that code looks good at first glance, but Excel does some weird stuff with the background/foreground colors at times.

@mstum mstum closed this as completed in abe3698 Sep 19, 2018
@mstum
Copy link
Owner

mstum commented Sep 19, 2018

There was indeed a bug in Simplexcel, Version 2.2.1.71 should fix that. Thank you for the report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants