HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
Expand Post »
:eek: My Dad has been working on a program and since he isn't online, he is having me ask you all for HELP !!!!!
How do you access the USB printer driver included in Windows and be able to use that information to print application programs using QuickBasic 4.0 ?
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
Specifically what command within a QB4.5 basic program with send output to a printer rather than the DOS screen when running a compiled QB program within XP. Obviously "LPRINT" does not do it.
Specifically what command within a QB4.5 basic program with send output to a printer rather than the DOS screen when running a compiled QB program within XP. Obviously "LPRINT" does not do it.
LPRINT does work, but there is very long pause becuase the LPRINT command does not use the CLOSE Command. This started with the WinNT. Without it, the windows spooler will pause for ~90 secs before it prints anything out, or will wait until the next output command... Try something like this first, and be sure to be useing either the NET USE command to virtually route the port, or use a free third party app like DOSPRINT to route the port to a USB. I have over 500 customers "still" using with these methods.
File$ = "LPT1:"
d% = FREEFILE
OPEN File$ FOR OUTPUT AS #d% 'Open Device
PRINT #d%, TAB(5); "Printed stuff goes here"
PRINT #d%, CHR$(12)
Close #d%
Do not forget to use the form feed, CHR$(12) !!! Printing starts as soon as the close command is received, if you do not, then there can also be a pause depending on the type of printer you are useing, ie Dotmatrix...
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.