Author Topic: How to make a hardcopy printout to my HP printer?  (Read 4798 times)

0 Members and 1 Guest are viewing this topic.

Offline David Dill

  • Newbie
  • Posts: 2
    • View Profile
How to make a hardcopy printout to my HP printer?
« on: March 01, 2018, 09:35:53 am »
I recall in the old days of BASIC (and my dot matrix printer), one could not only make a hard copy of their programs, but also even print out the results of a program run.  Now the best that I can do is a screen shot and print that.  Is there a way to make a hard copy like in the old days with QB64?

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: How to make a hardcopy printout to my HP printer?
« Reply #1 on: March 01, 2018, 09:49:38 am »
Hi David. Of course, it is. Use _PRINTIMAGE for printing screen. Welcome to the forum.

Edit - You can use LPRINT for printing outputs too, both works fine, works also with me Wireless HP laser printer.
« Last Edit: March 01, 2018, 09:53:37 am by Petr »

FellippeHeitor

  • Guest
Re: How to make a hardcopy printout to my HP printer?
« Reply #2 on: March 01, 2018, 10:16:49 am »
To print out your program listing, just load your .bas in any text editor and print it as desired, as it's all plain text. Notepad will do.

To print from your running program, use LPRINT or _PRINTIMAGE (http://qb64.org/wiki/PRINTIMAGE), as Petr suggested.
« Last Edit: March 01, 2018, 10:21:36 am by FellippeHeitor »

Offline David Dill

  • Newbie
  • Posts: 2
    • View Profile
Re: How to make a hardcopy printout to my HP printer?
« Reply #3 on: March 01, 2018, 05:21:58 pm »
Thank you for your suggestions.  They both worked.