UNO: Possible to get printing progress?
sos at pmgroup.be
Mon Apr 7 09:36:39 PDT 2014
in Basic we use this code
as long the bIsBusy is false , the printing is not finished
hope it helps
Dim PrinterProps(1) As New com.sun.star.beans.PropertyValue
PrinterProps(1).Name = "IsBusy"
dim bIsBusy as boolean
bIsBusy = True
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
Wait 10 ' Wait is a built in Basic statement
> 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
> however the PrintableState seems to contain only very basic
> information (Started, Completed, Spooled)...
> Thanks a lot,
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
More information about the LibreOffice