Platforms to show: All Mac Windows Linux Cross-Platform

Back to CUPSJobMBS class.

CUPSJobMBS.CompletedDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 20.5 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was completed.

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.CompletedTime as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was completed.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsComplete)

if UBound(jobs)<0 then
MsgBox "no job"
else
dim j as CUPSJobMBS = jobs(0)

MsgBox j.Title+" completed at "+j.CompletedTime.AbbreviatedDate+" "+j.CompletedTime.longtime
end if

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.CreationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 20.5 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was created.

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.CreationTime as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was created.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsComplete)

if UBound(jobs)<0 then
MsgBox "no job"
else
dim j as CUPSJobMBS = jobs(0)

MsgBox j.Title+" completed at "+j.CreationTime.AbbreviatedDate+" "+j.CreationTime.longtime
end if

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.Dest as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Printer or class name.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
dim lines(-1) as string

for each j as CUPSJobMBS in jobs
lines.Append j.Dest
next

MsgBox Join(lines,EndOfLine)

(Read and Write property)

CUPSJobMBS.Format as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Document format.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", true, CUPSMBS.kWhichJobsAll)
dim lines(-1) as string

for each j as CUPSJobMBS in jobs
lines.Append j.Format
next

MsgBox Join(lines,EndOfLine)

(Read and Write property)

CUPSJobMBS.ID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
The job ID.
Example
dim jobs(-1) as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
MsgBox jobs(0).Title+" has ID "+str(jobs(0).ID)

(Read and Write property)

CUPSJobMBS.Priority as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Priority (1-100).
Example
dim jobs(-1) as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
MsgBox jobs(0).Title+" has priority "+str(jobs(0).Priority)

(Read and Write property)

CUPSJobMBS.ProcessingDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 20.5 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was processed.

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.ProcessingTime as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Time the job was processed.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsComplete)

if UBound(jobs)<0 then
MsgBox "no job"
else
dim j as CUPSJobMBS = jobs(0)

MsgBox j.Title+" completed at "+j.ProcessingTime.AbbreviatedDate+" "+j.ProcessingTime.longtime
end if

Value is nil if the value is not set.
(Read and Write property)

CUPSJobMBS.Size as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Size in kilobytes.
Example
dim sum as Integer
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)

if UBound(jobs)<0 then
MsgBox "no job"
else
for each j as CUPSJobMBS in jobs
sum=sum+j.Size
next

MsgBox "Total size of all print jobs: "+str(sum)+" KB"
end if

(Read and Write property)

CUPSJobMBS.State as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Job state.
Example
dim jobs(-1) as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
dim state as Integer = jobs(0).State // check state of first job
dim s as string = "?"

Select case state
case CUPSMBS.kJobAborted
s = "Aborted"
case CUPSMBS.kJobCanceled
s = "Canceled"
case CUPSMBS.kJobCompleted
s = "Completed"
case CUPSMBS.kJobHeld
s = "Held"
case CUPSMBS.kJobStopped
s = "Stopped"
case CUPSMBS.kJobPending
s = "Pending"
case CUPSMBS.kJobProcessing
s = "Processing"
end Select

MsgBox str(State)+": "+s

(Read and Write property)

CUPSJobMBS.Title as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
Title/job name.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
dim lines(-1) as string

for each j as CUPSJobMBS in jobs
lines.Append j.Title
next

MsgBox Join(lines,EndOfLine)

(Read and Write property)

CUPSJobMBS.User as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
User the submitted the job.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", false, CUPSMBS.kWhichJobsAll)
dim lines(-1) as string

for each j as CUPSJobMBS in jobs
lines.Append j.User
next

MsgBox Join(lines,EndOfLine)

(Read and Write property)

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


The biggest plugin in space...