Writing a small program to convert reports from an iSeries, into word docs, and had some success, which is great. It is being written in RPG, but invoking some java classes that have just wrapped up for convenience, some docx4J methods.
I have hit two issues. I am having some trouble identifying how to put a page into landscape oritenation for docx output? STPageOrientation seemed a good place to start, but that seems to be designed to retrieve the value, not set it. Does anyone have some sample code that would point me in the right direction?
The second issue is when I mix between text wrapping breaks and page breaks, I lose the page breaks - doesn't even output them in the XML. Any clues as to what I have done?
- Code: Select all
org.docx4j.wml.Br lineBr = factory.createBr();
org.docx4j.wml.Br pageBr = factory.createBr();
The line breaks come out ok, but not the page ones. If I don;t use the line breaks, page breaks work well too.