You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I found out that you cannot assign a style to a cell and then, later on, add the borders, so for cells with the same style but with different borders, you will need to create a new style just with a different border.
Now that I figure that out, I manage to create the spreadsheet as I wanted it to be, but it's a bit annoying because there is a lot of duplicated code, for one table, I need to have a style for each corner, another one for the central of the table sides and finally another style for the core cells in the table.
Basically, to build a table I had to copy the same style 9 times just to adapt the borders.
NPOI Version
2.6.2
File Type
Issue Description
When creating a border for a merged cell, some of the sides come out wrong.
Here is an example:
In the code above you can see that I set a thick border for the following:
Which is not reflected in the excel file:
![image](https://private-user-images.githubusercontent.com/67487328/294925693-f3f00e89-06c2-4ac7-9020-dc8fee53be1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwNTE3ODQsIm5iZiI6MTcxOTA1MTQ4NCwicGF0aCI6Ii82NzQ4NzMyOC8yOTQ5MjU2OTMtZjNmMDBlODktMDZjMi00YWM3LTkwMjAtZGM4ZmVlNTNiZTFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIyVDEwMTgwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0OTc2NzhiNjk0NjkwYjYyMGI0MWYzYzFkZmU3YjdiZDRmOTdjMjc5OWZhNzM1NTY4M2EwYjFiNGE1MGM3YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZHLfSwoZ7hNf6gU2Mv70Z7ZpbkdohnVn3bbpR7Vk-_U)
If you wondering what's the style applied to the cells, this is the code:
The text was updated successfully, but these errors were encountered: