======================================================================
  Microsoft(R) Product Support Services Application Note (Text File)
 FD0712: CLOSING THE FOXBASE+ PRINT SPOOLER UNDER APPLICATION CONTROL
======================================================================
                                                   Revision Date: 3/93
                                                       1 Disk Included

The following information applies to Microsoft FoxBASE+ for MS-DOS,
version 2.0.

 --------------------------------------------------------------------
| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
| ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
| Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
| KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
| THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
| PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
| accuracy and the use of this Application Note. This Application    |
| Note may be copied and distributed subject to the following        |
| conditions: 1) All text must be copied without modification and    |
| all pages must be included; 2) If software is included, all files  |
| on the disk(s) must be copied without modification [the MS-DOS(R)  |
| utility DISKCOPY is appropriate for this purpose]; 3) All          |
| components of this Application Note must be distributed together;  |
| and 4) This Application Note may not be distributed for profit.    |
|                                                                    |
| Copyright 1993 Microsoft Corporation. All Rights Reserved.         |
| Microsoft and MS-DOS are registered trademarks and Windows         |
| is a trademark of Microsoft Corporation.                           |
 --------------------------------------------------------------------

INTRODUCTION
------------

This Application Note contains CLOSESP.BIN, a program that flushes the
print spooler after a print job is sent to a network printer. This
forces the print job to print immediately without manual intervention.

BACKGROUND
----------

When Microsoft FoxBASE+ for MS-DOS (or Microsoft FoxPro(R) for MS-DOS)
is used on a network, printed output is typically directed through a
printer spooler, a file that collects jobs for the printer when the
printer is busy.

When you send a FoxBASE+ (or FoxPro) report or other output to the
printer, the report does not print until you close the spooler, either
by sending another print job, by issuing the SET PRINTER TO network
command, by pressing CTRL+ALT+PRINT SCREEN, or by closing FoxBASE+ (or
FoxPro).

HOW CLOSESP.BIN WORKS
---------------------

The CLOSESP.BIN file on the enclosed FD0712 disk allows the print
spooler to be closed from within your program. Your FoxBASE+ (or
FoxPro) program can load the CLOSESP routine and call the routine at
any time to signal the end of a print job. The following code example
demonstrates how to use CLOSESP:

   LOAD CLOSESP && Load CLOSESP.BIN into memory
   .
   .
   .
   SET PRINTER TO LPT2:
   SET DEVICE TO PRINT
   && Create printed output here
   .
   .
   .
   CALL CLOSESP && Release spooled job to printer
   SET DEVICE TO SCREEN

INSTALLATION
------------

Copy the CLOSESP.BIN file from the enclosed FD0712 disk to your
FoxBASE+ (or FoxPro) program directory.

