Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Job In FoxPro
Message
De
20/01/2005 10:20:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Set Job In FoxPro
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00978868
Message ID:
00978868
Vues:
71
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)
Répondre
Fil
Voir

Click here to load this message in the networking platform