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

Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2007
Posts: 1
Reputation: Softhearted1 is an unknown quantity at this point 
Solved Threads: 0
Softhearted1 Softhearted1 is offline Offline
Newbie Poster

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

 
0
  #1
Jan 5th, 2007
: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 ?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,207
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 538
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

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

 
0
  #2
Jan 7th, 2007
i dont think quickbasic can
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

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

 
0
  #3
Mar 7th, 2007
*switch to VB!*

or a better language like C, C++, or Java.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 5
Reputation: qb45Mike is an unknown quantity at this point 
Solved Threads: 0
qb45Mike qb45Mike is offline Offline
Newbie Poster

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

 
0
  #4
Mar 7th, 2007
Originally Posted by linux View Post
*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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

 
0
  #5
Mar 8th, 2007
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

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

 
0
  #6
Mar 10th, 2007
Wait do you mean like "lprint "W/e"
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1
Reputation: TedS is an unknown quantity at this point 
Solved Threads: 0
TedS TedS is offline Offline
Newbie Poster

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

 
0
  #7
Mar 7th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 5
Reputation: qb45Mike is an unknown quantity at this point 
Solved Threads: 0
qb45Mike qb45Mike is offline Offline
Newbie Poster

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

 
0
  #8
Mar 7th, 2008
Originally Posted by TedS View Post
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...
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 5
Reputation: printfil is an unknown quantity at this point 
Solved Threads: 1
printfil printfil is offline Offline
Newbie Poster

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

 
0
  #9
Mar 20th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

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

 
0
  #10
Mar 23rd, 2008
Alright, this thread is more than a year old.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC