Francisco2626 <falvarez <at> isaltda.com.uy> writes: > > How can I get the paragraph, text highlight and table cell background color? > > -- > View this message in context: http://apache-poi.1045710.n5.nabble.com/HWPF- Paragraph-Table-colors-tp4286210p4286210.html > Sent from the POI - User mailing list archive at Nabble.com. >
Ok, i'm pretty new to this so it might not be the best solution but in a first look that what i cam out with to find the background color CharacterProperties cpp= par.getCharacterRun(j).cloneProperties(); short bgcolor=cpp.getHighlight(); from some reason i don't find a way to do it straight from the character run, and that what make me think that this is not the best solution, but it does the job, any way now you'll need to figure the colors, which should be the easy part, hope this helps. Ben. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
