Qbasicnews.com
November 12, 2019, 05:59:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hi and Help....  (Read 2521 times)
Mighty_Quinn
New Member

Posts: 4



« on: February 07, 2007, 02:20:37 PM »

From the Land of The Sleeping Giant a big HELLO....

Now to my problem which may not be exactly related to qBasic program directly.

Here is the situation, recently they purchased new hp printers and now they use usb ports.  This has complicated printing with qbasic because I can't get lpt1 to accept a usb port.

So I believe there is some code that you can use in order to assign the hp printer so that it will accept the data that my program has worked on.

The thing is that I have completely lost the set of commands that I need to perform this task.  So any help would be appreciated.

As I recall there was a set of commands to assign the printer and then another set that would restore normal printer commands.

So looking forward to some help if there is anyone who has an idea of what I am talking about.

Oh did i forget to mention I am not all that conversant in computer lingo and such.... :rotfl:

Thanks,

MQ
Logged

img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Mighty_Quinn
New Member

Posts: 4



« Reply #1 on: February 07, 2007, 03:48:23 PM »

Glad you were able to stick to the topic at hand..

MQ
Logged

img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Moneo
Na_th_an
*****
Posts: 1971


« Reply #2 on: February 07, 2007, 08:42:53 PM »

Quote from: "Mighty_Quinn"
......
Here is the situation, recently they purchased new hp printers and now they use usb ports.  This has complicated printing with qbasic because I can't get lpt1 to accept a usb port.

So I believe there is some code that you can use in order to assign the hp printer so that it will accept the data that my program has worked on.

The thing is that I have completely lost the set of commands that I need to perform this task.  So any help would be appreciated.

As I recall there was a set of commands to assign the printer and then another set that would restore normal printer commands.
......
MQ

Quinn, until you find the set of commands to switch in/out from a USB printer, I suggest you do the following:
1) Modify your progam to write the print lines to a text file, instead of doing LPRINT.
2) Run the program.
3) Make sure your HP is the default printer.
4) Get into Notepad and open the above output text file.
5) Select PRINT from the "file" menu.

It looks like a lot of extra work, but it's really not bad.

Regards..... Moneo
Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #3 on: February 08, 2007, 01:00:51 AM »

Can't you call notepad and tell it to print? Or some other program, specifically designed for that sort of thing?
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Mighty_Quinn
New Member

Posts: 4



« Reply #4 on: February 08, 2007, 10:02:00 AM »

The command line i require is a NET USE one but I can't seem to get the text right on it.  This would be for XP.  So if anyone can provide further info.....

Thanks tho..

MQ
Logged

img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Moneo
Na_th_an
*****
Posts: 1971


« Reply #5 on: February 09, 2007, 12:18:24 AM »

Quote from: "Skyler"
Can't you call notepad and tell it to print? Or some other program, specifically designed for that sort of thing?

I believe you can, though I've never done it.
I've been told that from your program you can do a SHELL something like this:

SHELL "notepad filename /p"

where the /p tells Notepad tp print the file.

If you're running XP, you might have to use this format:

SHELL "cmd/c notepad filename /p"

Try it. My printer is busted.

Regards..... Moneo
Logged
Mighty_Quinn
New Member

Posts: 4



« Reply #6 on: February 09, 2007, 02:17:37 PM »

Thanks for the suggestions everyone.  Printed the output to a text file and then used it to print.

Glad for the help here.  Hope someday I can return the favour.  :^_^:


MQ
Logged

img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!