Closed soend closed 1 year ago
I have added header and footer section to the README file. Not sure if readme needs example of usage also or not, currently its not there.
Thanks @soend! I'm merging your pull request. I'd like to experiment a little bit more with the API before finalizing a release (just for fun), but in my opinion usage is much clearer to people not knowing the specification, now. Salvo
I have added very functionality to write headers and footers to excel sheets.
Usage can be seen in the HeaderFooter test case what i have added.
In current implementation person writing the code to add header/footer needs to know the formatting codes when creating the header/footer string. For example
&RSomeTextHere
- where&R
code specifies the beginning of the right section. More information about the codes can be found in the links below.When adding headers/footers its important to remember
oddHeader
andoddFooter
are the main fields to fill. Only when using different odd even headers footers (differentOddEven: true
) you would fillevenHeader
orevenFooter
.If there is more tests needed or any other change please let me know and i will do them.
Some links to get more information about headerFooter: OpenXML HeaderFooter class definition and description of available attributes Description of formatting codes what can be used in header and footer Another good table about codes to use in header and footer from DevExpress