-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Excel finds a problem in the generated file if we use a font without setting its size #165
Comments
This is because the default font size is set incorrectly: not 11 points, but 11 pixels (0.55 points). |
Well then this could easily be addressed. Thank you for having investigated. |
This bug is valid. We will provide the fix in the next release |
Any idea when the next release will happen? |
Latest version on NuGet, 2.4.1, still has this issue. Took me several hours of debugging to track it down to this font size issue when creating a new font. |
|
Hello, fix was commited on Feb 8, 2019 but NuGet version 2.4.1 still has the bug. |
@patrikmor how about 2.5.1? Is it fixed? |
When generating a file with version 2.4.1, Excel now brings up this message (in french)
English message = same as https://github.com/tonyqus/npoi/issues/158
If I use this style for my header cells, Excel bugs and all headers are repaired with font of size 1.
It was not the case with version 2.3.0.
I can solve the problem by adding this line :
headerFont.FontHeightInPoints = 11;
Suggestion:
Deprecate CreateFont() method and add a new method that requires a font size parameter.
The text was updated successfully, but these errors were encountered: