Summary: | CTHMerge & CTTcBorders classes missing in poi-ooxml-schemas-3.8 | ||
---|---|---|---|
Product: | POI | Reporter: | gabe pisce <gabriel.goic> |
Component: | XWPF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | samuel.langlois |
Priority: | P2 | ||
Version: | 3.8-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows Vista |
Description
gabe pisce
2012-11-05 10:25:40 UTC
Please check with the latest build from trunk, the link to daily builds is on http://poi.apache.org/ I checked with poi-bin-3.9-beta1-20121102 but none of these classes are included in the org.openxmlformats.schemas.wordprocessingml.x2006.main package, causing the bug to appear. check your classpath. I've just re-checked with the latest build from trunk and CTHMerge and CTTcBorders are in poi-ooxml Yegor I must admit I am a bit confused right now. I am looking for the following classes: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHMerge org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcBorders The only jar in the POI release that contains a org.openxmlformats package is poi-ooxml-schemas.jar (correct me if I am wrong) So I checked the latest build from trunk: poi-bin-3.9-beta1-20121108 And poi-ooxml-schemas-3.9-beta1-20121108.jar does not contain those classes. Are they located elsewhere? maybe in a different package? Sorry for confusion, I was actually checking against the full ooxml-schemas-1.1.jar. Can you please try once more? I added junit tests that ensure that CTHMerge and CTTcBorders go in poi-ooxml-schemas jar. Yegor Thanks for the partial fix. However, this only unveiled some other mising classes which allow the same function (to merge cells in a docx). 1) XWPFTableCell cell = ...; CTTc ctTc = cell.getCTTc(); CTTcPr tcPr = ctTc.addNewTcPr(); CTHMerge hMerge = tcPr.addNewHMerge(); hMerge.setVal(STMerge.RESTART); => org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge is missing 2) XWPFTableCell cell = ...; CTTc ctTc = cell.getCTTc(); CTTcPr tcPr = ctTc.addNewTcPr(); CTVMerge vMerge = tcPr.addNewVMerge(); => org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge is missing May I suggest to include everything aroung "Merge"? "around merge" is a fuzzy definition. please submit sample code that sets bordes and references all classes you need and I will include. "around merge" is a fuzzy definition. please submit sample code that sets bordes and references all classes you need and I will include them in poi-ooxml-schemas.jar. Got it, STMerge & CTVMerge will be enough for now :) Needed classes: 1) XWPFTableCell cell = ...; CTTc ctTc = cell.getCTTc(); CTTcPr tcPr = ctTc.addNewTcPr(); CTHMerge hMerge = tcPr.addNewHMerge(); hMerge.setVal(STMerge.RESTART); => org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge is missing 2) XWPFTableCell cell = ...; CTTc ctTc = cell.getCTTc(); CTTcPr tcPr = ctTc.addNewTcPr(); CTVMerge vMerge = tcPr.addNewVMerge(); => org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge is missing Fixed in r1409676, now STMerge & CTVMerge are in poi-ooxml-schemas Yegor (In reply to comment #10) > Needed classes: > > 1) > XWPFTableCell cell = ...; > CTTc ctTc = cell.getCTTc(); > CTTcPr tcPr = ctTc.addNewTcPr(); > CTHMerge hMerge = tcPr.addNewHMerge(); > hMerge.setVal(STMerge.RESTART); > > => org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge is missing > > > 2) > XWPFTableCell cell = ...; > CTTc ctTc = cell.getCTTc(); > CTTcPr tcPr = ctTc.addNewTcPr(); > CTVMerge vMerge = tcPr.addNewVMerge(); > > => org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge is missing |