Le 08/03/2011 15:30, fiensi73 a écrit :
Hello,
I'm trying JOpenDocument library for a project involving complex mail
merge with JODReports.
I've got 2 questions:

1) Is there a way of creating a new text document? Something like
"SpreadSheet.createEmpty(model).saveAs(file)"?

        No, but you can do something like
new ODPackage(getClass().getResourceAsStream("myEmpty.odt")).toSingle()

2) I used the method ODSingleXMLDocument.add(ODSingleXMLDocument doc,
boolean pageBreak) trying to have no page break between documents
setting "pageBreak = false", but It doesn't seem to work. There
something I make wrong?

No, this is how it works. Check in OpenOffice if the last paragraph of the first document doesn't specify a page break after itself.


Cheers,
Sylvain

Reply via email to