Re: need regedit for a faster printer



Ken Blake, MVP wrote :
On Fri, 12 Oct 2007 22:43:18 +0200, Klaus Jorgensen <kj@xxxxxxx>
wrote:

robert lipsett wrote :
thanks for the link it looks like what I need

Please note that if your application supports printing to a file named LPT1 instead of directly to the physical port LPT1, is a much better solution to your problem.

Please note that LPT1 is a reserved name in DOS and Windows and can
*not* be used for a file name. It has nothing to do with whether the
application supports it.

Yep - writing to a device name does not create a typical file on a drive. An application writing to a "file" does not distinguish between a real file name and a reserved device name. The DOS copy command is an example of this (e.g. "copy filename.txt lpt1").

For DOS applications there are usually two ways of outputting print data:
1. To a file (in this case a device name called LPT1)
2. Directly to the printer (via the BIOS or a hardware I/O-port)

Windows grabs both of them.
Using method [1], Windows knows when a print job is finished, and begins printing immediately. In method [2], the DOS application sends data without indicating an end of job, so Windows does not know if the application is still computing print data or if the print job is actually finished.
In a multitasking environment it must know this before sending data to the printer - that's why it waits for about 15 seconds before assuming an end of the print job.

--

/klaus


.



Relevant Pages

  • Re: LPT1 to USB Printer Wont print
    ... LPT1 is a real port which the USB is not. ... You'll have to obtain a PCI serial/parallel expansion card so the computer has a real port to work with. ... page prints and the print job neither completes nor can it be deleted. ...
    (comp.lang.clipper)
  • Re: NEW Issue..........Changing LPT port to use USB in MS-DOS application?
    ... Run the print job pointed at LPT1 ... be shared is it not working becuase it's "off" the network now? ... manually make it assume it's a network machine and find the printer resource it's seeking? ...
    (microsoft.public.windowsxp.general)
  • Re: How to send data directly to the printer port?
    ... > can be use for parallel port as well. ... > The code above works perfectly if there is no printer added to the LPT1. ... > I try to open the printer queue window and there is some job in process. ... > the printer then continue to print the rest of the data and the print job ...
    (microsoft.public.vc.language)
  • Re: Changing LPT port to use USB in MS-DOS application?
    ... Run the print job pointed at LPT1 ... directing print jobs to parallel LPT1 OKIdata Microline systems. ... Prince By-Tor takes the cavern to the north light ...
    (microsoft.public.windowsxp.general)
  • Checking Print Job size in Java Printing API
    ... my print service does not support it. ... trying to check the print job size myself. ... Any one know whether there are any other output format? ... if I can save the print data to a file, will I be able to read it back ...
    (comp.lang.java.programmer)