Printing Program Output
Printing Program Output
I have a program that has a tabular output. It could run several pages based on the input parameters. How can I get a paper copy of the output, since the Print command only shows the listing on my computer monitor. Thanks in advance.
Re: Printing Program Output
The thing you want to use.... Replace "PRINT" with "LPRINT".... works for me! It sends all the output to a serial, Ethernet, wireless, broadband, or USB printer! ![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Re: Printing Program Output
Output to a txt file and format it how you like and print that. That's what I'd do
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Re: Printing Program Output
Print a text file directly from the command prompt using the default printer by inserting /p prior to the file's name:
https://www.qb64.org/wiki/SHELL
Code: Select all
filename$ = "C:\Documents\textfile.txt"
SHELL "Notepad /p " + filename$.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0