User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 402,911 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,068 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser: Programming Forums
Views: 5242 | Replies: 11
Reply
Join Date: Jan 2007
Posts: 1
Reputation: Softhearted1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Softhearted1 Softhearted1 is offline Offline
Newbie Poster

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

  #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 ?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

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

  #2  
Jan 6th, 2007
i dont think quickbasic can
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 908
Reputation: linux is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 23
linux's Avatar
linux linux is offline Offline
Posting Shark

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

  #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  
Join Date: Mar 2007
Posts: 5
Reputation: qb45Mike is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
qb45Mike qb45Mike is offline Offline
Newbie Poster

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

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,701
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is online now Online
duckman

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

  #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).
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 908
Reputation: linux is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 23
linux's Avatar
linux linux is offline Offline
Posting Shark

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

  #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  
Join Date: Mar 2008
Posts: 1
Reputation: TedS is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
TedS TedS is offline Offline
Newbie Poster

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

  #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  
Join Date: Mar 2007
Posts: 5
Reputation: qb45Mike is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
qb45Mike qb45Mike is offline Offline
Newbie Poster

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

  #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  
Join Date: Mar 2008
Posts: 5
Reputation: printfil is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
printfil printfil is offline Offline
Newbie Poster

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

  #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 7:58 am.
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 908
Reputation: linux is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 23
linux's Avatar
linux linux is offline Offline
Posting Shark

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Legacy and Other Languages Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Legacy and Other Languages Forum

All times are GMT -4. The time now is 3:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC