DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Legacy and Other Languages (http://www.daniweb.com/forums/forum42.html)
-   -   HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access (http://www.daniweb.com/forums/thread66482.html)

Softhearted1 Jan 5th, 2007 8:43 pm
HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
: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 ?

jbennet Jan 7th, 2007 12:54 am
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
i dont think quickbasic can

linux Mar 7th, 2007 3:57 pm
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
*switch to VB!*

or a better language like C, C++, or Java.

qb45Mike Mar 7th, 2007 6:07 pm
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
Quote:

Originally Posted by linux (Post 326400)
*switch to VB!*

or a better language like C, C++, or Java.

Humm, not very helpfull...

If he is just trying to print to a USB printer then he can use the NET USE Command from the DOS prompt like this:

:>net use lpt1 \\[Server]\[Shared Printer]\ /persistent:y

OR

He can use a third party program like DOSPrint from
www.andtechnologies.com/dosprint.html

jwenting Mar 8th, 2007 2:14 pm
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
that assumes the printer is actually assigned to a DOS accessible printer port rather than a network URI (which is quite possible with USB printers).

linux Mar 10th, 2007 7:46 pm
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
Wait do you mean like "lprint "W/e"

TedS Mar 7th, 2008 3:28 am
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.

qb45Mike Mar 7th, 2008 9:51 am
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
Quote:

Originally Posted by TedS (Post 554400)
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...

printfil Mar 20th, 2008 8:50 am
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
These articles explains either how to speed up printing from DOS to Windows printers (without changes to the Basic source) or how to let Basic programs printing to GDI Windows printers.

Regards,
Davide Guolo
aSwIt s.r.l.

linux Mar 23rd, 2008 2:41 pm
Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access
 
Alright, this thread is more than a year old.


All times are GMT -4. The time now is 9:25 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC