SAMPLE: ADSIPrnt.exe Demonstrates ADSI Print Job Control

ID: Q195848


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 6.0
  • Microsoft Active Directory Service Interfaces, version 2.5


SUMMARY

ADSPrnt.exe is a self-extracting executable file that contains the Visual FoxPro form files ADSIPrintjob.scx and ADSIPrintjob.sct. This sample demonstrates how to control print jobs using the Active Directory Services Interface (ADSI).


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

ADSIPRNT.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

   FileName                 Size
   ---------------------------------------------------------

   ADSIPrintjob.Scx          4,194 bytes
   ADSIPrintjob.Scx         21,184 bytes 
NOTE: To use the sample, you must install the Active Directory Service Interfaces from your MSDN CD or from the following Web site:
http://www.microsoft.com/backoffice/downloads.htm
ADSI is a COM-based interface for accessing directory services. Each element of the network (that is, users, printers, and computers), can be treated as an object.

To use the ADSIPrintjob form, run ADSIPrnt.exe to extract the form files. Run the form from within Visual FoxPro by typing the following in the command window:

   DO FORM ADSIPrintjob 
Enter a domain name and a server name where you want to look for print queues. A domain name is not required, but omitting the domain name will increase the time of the search. Once the server is found and the list box is populated, you can select a print queue from the list. You can use the Queue Control buttons to pause, resume, or purge the print queue.

Once you select a queue, the print jobs in that queue are listed in the second list box. When you select a print job, you can use the Job Control buttons to pause, resume, or delete a print job. The More Info button displays additional information about the print job.


REFERENCES

For more information about ADSI, see the following Web site:

http://www.microsoft.com/NTServer/

© Microsoft Corporation 1998, All Rights Reserved.
Contributions by Mike A. Stewart, Microsoft Corporation

Additional query words:

Keywords : kbfile kbsample kbADSI kbVFp600 kbDSupport
Version : WINDOWS:6.0; winnt:2.5
Platform : WINDOWS winnt
Issue type : kbinfo


Last Reviewed: November 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.