O.K. it seems that one needs to synchroneously print the documents in
the same thread.

Found the PrintOptions "Wait" property, which one needs to set to true,
alleviating one from the need of registering and processing a
XPrintJobListener. Also cf.
<http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Drawings/Printing_Drawing_Documents>.

---rony


On 13.07.2010 16:57, Rony G. Flatscher wrote:
> Maybe this is a stupid question w.r.t. XPrintable:
>
>     * If one wishes to print three different documents within the same
>       thread using their respecitve XPrintable.print(...), is it then
>       necessary to make sure that the first print job has completed,
>       before the next one starts?
>       If so, then probably using the
>       com.sun.star.view.XPrintJobBroadcaster interface's
>       addPrintJobListener(XPrintJobListener) needs to be used. Now,
>       which enum value of PrintableState indicates, that it is o.k. to
>       a) dispose of the printed document and b) start to print the next
>       document: JOB_COMPLETED or JOB_SPOOLED? (Besides the states that
>       indicate abnormal states like JOB_ABORTED etc.) 
>
> TIA,
>
> ---rony
>
> P.S.: Would the printing make any difference if all documents to be
> printed are hidden?
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to