944,005 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jan 5th, 2007
0

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 ?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Softhearted1 is offline Offline
1 posts
since Jan 2007
Jan 7th, 2007
0

Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access

i dont think quickbasic can
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,522 posts
since Apr 2005
Mar 7th, 2007
0

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.
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
Mar 7th, 2007
0

Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access

Click to Expand / Collapse  Quote originally posted by linux ...
*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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
qb45Mike is offline Offline
5 posts
since Mar 2007
Mar 8th, 2007
0

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).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 10th, 2007
0

Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access

Wait do you mean like "lprint "W/e"
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
Mar 7th, 2008
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
TedS is offline Offline
1 posts
since Mar 2008
Mar 7th, 2008
0

Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access

Click to Expand / Collapse  Quote originally posted by TedS ...
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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
qb45Mike is offline Offline
5 posts
since Mar 2007
Mar 20th, 2008
0

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.
Last edited by printfil; Mar 20th, 2008 at 8:58 am.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
printfil is offline Offline
5 posts
since Mar 2008
Mar 23rd, 2008
0

Re: HELPPPPPPPP, Need to know about Windows XP and QuickBasic USB printer driver access

Alright, this thread is more than a year old.
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006

This thread is more than three months old

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.
Previous Thread in Legacy and Other Languages Forum Timeline: Dr scheme read text file help
Next Thread in Legacy and Other Languages Forum Timeline: Fortran - Fibonacci search not as efficient as it should be





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC