Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>q_submit() - load file into print queue for printing</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     q_submit() - load file into print queue for printing
  Usage:    <logical> = q_submit(<file>)
  Params:   string <file> - the filename to put into the queue,
            can include drive and path specifier.
  Returns:  logical .T. if the file was accepted by the print queue,
            .F. if not or DOS version is less than 3.00

 ---------------------------------- Example ---------------------------------

                 if (! isqueue())
                      ? "You need to run print.com first"
                 else
                      q_submit("test.prg")
                      ? "File 'test.prg' loaded into queue"
                 endif

  Note:     You must run your print spooler before you use the q_*
            functions. DOS 3.00 and above comes with a print
            spooler called print.com. If you have another print
            spooler, it may or may not work with the q_* functions.
            please check your print spoolers documentation. The
            print queue functions are only available under DOS 3.00
            and above. The DOS manual has a section outlining the use
            of the PRINT.com print spooler. The Q functions allow you
            to interface directly to the print.com spooler without having
            to RUN the program. You can use these functions to print
            long reports in the background, leaving the user the ability to
            continue entering data while the report prints. Just print the
            report to a file first, and then use the Q functions to print the
            report to the printer in the background.


See Also: isqueue() q_cancel() q_delete() q_file() q_hold()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson