-
-
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
NPOI setting a new workbook ThemesTable copied from another workbook ThemesTable does nothing #1380
Comments
You need to provide complete code |
Hello, certainly, here it is:
Thank you for your time! I really hope this will help you fix the issue as i have no other way to set the theme for the new workbook! |
Can you provide the original Excel file containing the theme? |
excelToSend.xlsx You can also look at the color theme which has on the original file selected office2007-office2010 and yet on the new workbook with the copied worksheet it does not reflect even that. |
Hello everyone! Thank you very much for improving this wonderfull program, so far i was able to do alot with it however i think i have found a very strange bug that makes me unable to achieve the desired final result on a programmatically created workbook.
I am simply splitting a workbook of several sheets into new programmatically created workbooks containing only 1 sheet each, for example a workbook that has 100 sheets will then be split into 100 files/workbooks that each contain 1 sheet.
I have noticed that some of those workbooks have a different Theme for colors, namely one of them have the office 2006-2012 color theme enabled, obviously the new workbook created programmatically should reflect the same color theme as that will change the color selection behavior of the new workbooks. I have found no documentation regarding my issue but i believe this can be very easy to fix, please see details below for relevant information:
NPOI Version
2.7.1
File Type
Reproduce Steps
These lines of code will suffice to test:
Issue Description
As you can see the line of code above should be sufficient to change the page layout colors theme of the new workbook to reflect the same color theme of the old workbook, even though debugging programatically that line of code above semms to actually change the said theme, for some reason when opening excel such change does not reflect inside the app, at the page layout tab if we open the colors menu the different theme does not appear to be selected and the default colors do not reflect the theme i have selected.
Perhaps i am missing something? if so could you please point me in the right direction on how to change the color theme of a workbook to a different one? I know it should be easy but i have found no examples over the net and i've searched alot!
Thanks in advance for all of your help!
The text was updated successfully, but these errors were encountered: