question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tint value is not read correctly

See original GitHub issue

I code in C#. I use NPOI(version 2.5.5).

I have this excel file whose extention is .xlsx:

dOcS2

I editted the Excel sheet via NPOI.

code:

private void button_editByNpoi_Click(object sender, EventArgs e)
        {
            string filePath = destFileName;

            IWorkbook workbook;
            using (FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read))
            {
                workbook = new XSSFWorkbook(fs);
            }

            /*
            //1枚目のシートを取得
            ISheet sheet = workbook.GetSheetAt(0);

            //セルを取得
            IRow row = sheet.GetRow(1);
            ICell cell = row.GetCell(1);

            //セルに書き込み
            //cell.SetCellValue("a");
            */

            using (FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write))
            {
                //上書き保存する。
                workbook.Write(fs);
            }
        }

As the result, I got this excel sheet:

59NUX

the light gray color has gone after editting. How can I keep the color?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tonyquscommented, Jun 8, 2022

The planned release date is Oct, 2022. Release note is here: https://github.com/nissl-lab/npoi/discussions/742

1reaction
H-Hervertcommented, Apr 3, 2022

As @lukasz-gabryel mentioned, the bug has not been fixed yet, right? When will it be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Color tint feature not working as expected · Issue #1235
It appears that Vips colourspace VIPS_INTERPRETATION_LAB is not able to interpret these negative values (maybe it requires this normalised?) but ...
Read more >
tint() bug ? - Processing 2.x and 3.x Forum
I think tint(255,255) should apply a transparency of 100%. But i have problem with the following sketch: PGraphics pg; color c, cp; ...
Read more >
Given an RGB value, how do I create a tint (or shade)?
For tints, calculate (255 - previous value), multiply that by 1/4, 1/2, 3/4, etc. ... (Note that "linear RGB" is not an RGB...
Read more >
How to Tell if Your Car Window Tinting Is Good or Not
Only one person could properly get away with purple windows (RIP Prince!), but you'd never know it given the tremendous number of cars...
Read more >
Tint Meter Online Training course
The meter should display a reading of not more than plus or minus 2% points of the reference standards. Test your meter on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found