Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CUPSJobMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CUPS MBS Tools Plugin 9.7 Yes No Yes Yes No
Function: The class for job details.
Example:
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", true, CUPSMBS.kWhichJobsActive)

if UBound(jobs)<0 then
MsgBox "no job"
else

dim j as CUPSJobMBS = jobs(0)
dim lines(-1) as string

lines.Append "Title: "+j.Title
lines.Append "User: "+j.User
lines.Append "Format: "+j.Format
lines.Append "Dest: "+j.Dest
lines.Append "ID: "+str(j.ID)
lines.Append "Priority: "+str(j.Priority)
lines.Append "Size: "+str(j.Size)
lines.Append "State: "+str(j.State)

if j.CompletedTime<>nil then
lines.Append "CompletedTime: "+j.CompletedTime.AbbreviatedDate+" "+j.CompletedTime.longtime
else
lines.Append "CompletedTime: nil"
end if

if j.CreationTime<>nil then
lines.Append "CreationTime: "+j.CreationTime.AbbreviatedDate+" "+j.CreationTime.longtime
else
lines.Append "CreationTime: nil"
end if

if j.ProcessingTime<>nil then
lines.Append "ProcessingTime: "+j.ProcessingTime.AbbreviatedDate+" "+j.ProcessingTime.longtime
else
lines.Append "ProcessingTime: nil"
end if

MsgBox join(lines,EndOfLine)

end if

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

  • CUPSMBS.GetJobs(name as string, OnlyMyJobs as boolean, whichjobs as Integer) as CUPSJobMBS()

Some examples which use this class:


The items on this page are in the following plugins: MBS Tools Plugin.


CUPSErrorExceptionMBS   -   CUPSMissingFunctionExceptionMBS




Links
MBS Xojo PDF Plugins