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
The index or in other words "position" of xf tag inside the cellXfs section will be the style number that I have to assign to the cell to have this cell styled.
Questions,
Is there any way to access styles.xml file in OpenTBS to calculate the "position" of my style within cellXfs knowing the name of my created style?
I tried to "re-assign" the value of style attribute in generated document, but it did not work for me. The final document had "internal" index for the style instead of a new index that I wanted to assign.
For example, my cellXfs has 44 styles (in other words - xf tags), for some cells I want to assign an alternative style by having this construction in cells [row.cell.st;att=c#s] where row.cell is some value from MergeBlock. By having this [row.cell.st][row.cell.st;att=c#s] I can confirm that the value of row.cell.st is correct, but this does not affect the attribure within worksheets/_ref/sheet1.xml
<c r="E4" s="41">
<v>2</v>
</c>
Where 41 is an internal style that I was trying to "override". Am I doing something wrong? How to assign a new value to s attribute? [row.cell.st;att=c#s] did not work for me.
The text was updated successfully, but these errors were encountered:
Hi, is there any detail description of how to deal with styles in Excel documents?
So far, this is what I found
styles.xml
incellStyles
sectionxfId
xfid
I have to find a correspondentxf
tag incellXfs
sectionxf
tag inside thecellXfs
section will be the style number that I have to assign to the cell to have this cell styled.Questions,
styles.xml
file in OpenTBS to calculate the "position" of my style withincellXfs
knowing the name of my created style?For example, my
cellXfs
has 44 styles (in other words -xf
tags), for some cells I want to assign an alternative style by having this construction in cells[row.cell.st;att=c#s]
whererow.cell
is some value from MergeBlock. By having this[row.cell.st][row.cell.st;att=c#s]
I can confirm that the value ofrow.cell.st
is correct, but this does not affect the attribure withinworksheets/_ref/sheet1.xml
Where 41 is an internal style that I was trying to "override". Am I doing something wrong? How to assign a new value to
s
attribute?[row.cell.st;att=c#s]
did not work for me.The text was updated successfully, but these errors were encountered: