Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Job In FoxPro
Message
From
20/01/2005 10:20:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Set Job In FoxPro
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978868
Message ID:
00978868
Views:
70
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
Map
View

Click here to load this message in the networking platform