On Thu, 14 Apr 2011, Francisco2626 wrote:
get the background color of a paragraph: CTP CTP = paragraph.getCTP (); pPr.getShd () / / and here I can not continue.
If you create a file with two paragraphs, save it, take a copy, open that and make one paragraph have say a green background, how do those two files differ? (unzip the .docx files and diff the xml). That should tell you what you need to read to get the background colour.
obtain the border of a cell: XWPFTableCell cell: row.getTableCells () cell.getCTTc (). getTcPr (). getTcBorders () / / and here I can not continue
That gives you a CTTcBorders, which lets you get the left, right, top bottom etc borders. On those, you can get the colour, the theme, the tint etc
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
