Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hi and Help....
#1
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
img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Reply
#2
Glad you were able to stick to the topic at hand..

MQ
img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Reply
#3
Quote:......
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
Reply
#4
Can't you call notepad and tell it to print? Or some other program, specifically designed for that sort of thing?
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
Reply
#5
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
img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Reply
#6
Quote: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
Reply
#7
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
img]http://img.photobucket.com/albums/v63/Tidus_Len/Thunder%20Bay/IAmCanadian.jpg[/img]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)