General information
Category:
Coding, syntax & commands
I have been sent to following code which i believe enables me to print, pause, delete a job from a defined printer. However, i am unsure how to integrate this with the code i already have which allows me to list the printers installed and view the jobs queued within that printer.
Regards,
Phil
#define JOB_CONTROL_PAUSE 1
#define JOB_CONTROL_RESUME 2
#define JOB_CONTROL_CANCEL 3
#define JOB_CONTROL_RESTART 4
#define JOB_CONTROL_DELETE 5
DECLARE INTEGER SetJob IN winspool.drv;
INTEGER hPrinter,;
INTEGER JobId,;
INTEGER Level,;
STRING @ pJob,;
INTEGER Command,;
loOneJob = ooo.oJobList.Item(i)
SetJob(loOneJob.PrinterName,;
loOneJob.JobId,;
0,;
NULL,;
JOB_CONTROL_PAUSE)
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only