Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting print jobs from the queue
Message
From
03/03/1999 16:41:57
 
 
To
03/03/1999 16:06:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193758
Message ID:
00193782
Views:
12
>We have an application that prints letters or envelopes to either a network printer or to a local printer. It prints them one page at a time, so if you're printing 250 letters at a time it sends 250 one page jobs as opposed to one 250 page job.
>
>We want to add the ability to cancel printing. So if you started to print 250 letters and hit "cancel" at letter number 100 you can either let it finish the 100 or kill everything that's still in the queue.
>
>My question is: How do I cancel everything that's in the print queue using the printers that are setup in the Windows Print Manager? I've found gplib.fll but it seems to only deal with Netware print queues. We'll not only be using networked printers but also local printers.
>
>Is there an API function? Does anyone have an FLL that does this?
>
>We're using VFP5 under Windows 95. Thanks.
>
>paul

Hello Paul!

When I get home, I will upload to UT File Section the new version of chgname.fll, which has the function you are looking for. It has a new function:
SetPrtDocs(cPrinter,cDocName,nCommand)

Supported value of nCommand :

Resume print job
Pause print job
Cancel print job
Restart print job

BB

P.S.:Tested on Netware and NT with NT,95,98.
P.S.:I hope it will available on UT tomorrow.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform