Ignaz ,
in Basic we use this code
as long the bIsBusy is false , the printing is not finished
hope it helps
greetz
Fernand
oDocument.setModified(false)
Dim PrinterProps(1) As New com.sun.star.beans.PropertyValue
PrinterProps(0).Name="wait"
PrinterProps(0).value=true
PrinterProps(1).Name = "IsBusy"
dim bIsBusy as boolean
bIsBusy = True
While bIsBusy
dim aPrintConditions as object
aPrintConditions = oDocument.getPrinter()
dim i as integer
For i = LBound( aPrintConditions ) To UBound( aPrintConditions )
If aPrintConditions(i).Name = "IsBusy" Then
bIsBusy = aPrintConditions(i).Value
EndIf
Next
Wait 10 ' Wait is a built in Basic statement
WEnd
oDocument.Print(array())
endif
Hello,
is it possible to get the printing progress of a document via UNO?
This would make it possible to give the user some feedback when
printing large documents.
The closest thing I've found is the PrintJobEvent
(http://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1view_1_1PrintJobEvent.html),
however the PrintableState seems to contain only very basic
information (Started, Completed, Spooled)...
Thanks a lot,
Ignaz
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.