I have a Database agent that generates a word document from IBM Notes data. I am using the Java2Word API to achieve this but unfortunately, this API has little Documentation and I couldn't find anything regarding table formatting (size, merging, etc.).
Here are my methods for row generating: `
public void AddFirstRow(String[] Items){
CurrentTable.addTableEle(TableEle.TH, Items);
}
public void AddRow(String[] items){
CurrentTable.addTableEle(TableEle.TD, items);
}
public void AddLastRow(String[] items){
CurrentTable.addTableEle(TableEle.TD, items);
}
`
Does anyone have prior experience using this library and knows how to implement table formatting?
答案 0 :(得分:0)
以防万一有人再次尝试此操作,使用Java2Word的默认方法是不可能的,我以适当的格式创建了自己的oXML模板并将其添加到Jar中。