I've been looking at printing via the OpenOffice.org API. Is there a way to get a print preview? There doesn't seem to be anything about this in the Devlopers' Guide.
supposing you have the XModel (xModel) of the document and the ServiceManager (xMSF) then the following should do what you want.