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

Reading the formatting of the cells (color/fontSize/etc) #630

Open
BenjaBobs opened this issue Mar 8, 2023 · 1 comment
Open

Reading the formatting of the cells (color/fontSize/etc) #630

BenjaBobs opened this issue Mar 8, 2023 · 1 comment

Comments

@BenjaBobs
Copy link

Hi, is there currently any way to read the color/fontSize/etc formatting of a cell?
And if not, are there plans to support it?

My challenge is that I work with excel files that have arbitrarily defined tables with "sections" and "sub sections", and they're always created in widely different ways.
Here's an example of what it could look like:
image

I was hoping to be able to create some kind of heuristic based on the font size and maybe font color so I can identify which rows are section headers.

@boginw
Copy link

boginw commented Jun 16, 2023

Some functionality already exists for this, but it isn't released yet for some reason. See IExcelDataReader.cs#L81 and implementation in ExcelDataReader.cs#L163. They are returning CellStyles which might solve some of your issues. I can see that for your case, the library is missing fore- and background color properties and perhaps border information.

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

No branches or pull requests

3 participants