
GWBasic: Closing LPrint Output?
Quote:
>When he prints reports using LPrint to a
>re-directed LPT1, the report is held for a minute or so before it prints. I
>have tweaked the server to no end until I realized that it's gw-basic that's
>the problem. If he exits the gw-basic program, the print occurs
>immediately, or if the program "ends", it also prints immediately. However,
>he has a menu handler which keeps the program running. Is there an LPrint
>switch or command to "end" the print output so that the server sends the
>report to the printer immediately?
I've never worked in a Windows NT environment, but multitasking operating
systems get between user software and the hardware, to prevent contention.
GWBasic is an _old_ DOS program that assumes that it owns the whole system.
NT sees your menu handler as the running program, so it doesn't print anything
until the virtual printer device times out.
Have you tried opening the printer as a file (OPEN "O", #n, "LPT1") and writing
to it? When you close this 'file', NT should recognize this as the end of the
print job.
Of course, I don't know NT, so it could be something as easy as LPRINTing two
consecutive null characters.
**********************************************************************
If it's spam, it's a scam. Don't do business with Net abusers.