|
-
May 19th, 2007, 12:58 PM
#1
Thread Starter
New Member
Transferring results of a QBASIC calculation to WORD
I thought that I could print out the results of a QBASIC program (columns of numbers) just by substituting LPRINT for each PRINT command, but that does not work for me. Apparently because my printer -- connected to my pc through a USB port -- is not connected to LPT1.
Can someone please tell me how I can embed the table of results into a WORD document that I could then print?
Is there a way to save the QBASIC program results as a text file, that I then could retrieve using WORD?
FWIW I am using MS-QBASIC 1987-1992, running under the MS-DOS feature of Windows 98.
-
May 22nd, 2007, 01:55 PM
#2
Re: Transferring results of a QBASIC calculation to WORD
You could Print# the results (you'd have to open the text file first, do all the printing to it, then close it).
Or you could add LPT1 to the ports your printer is "connected" to (in the Ports tab). then, since the printer isn't there in LPT1, Windows will redirect the print job to the USB port the printer is on.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 22nd, 2007, 02:23 PM
#3
Thread Starter
New Member
Re: Transferring results of a QBASIC calculation to WORD
Al42: Thanks for your response. I like this suggestion
<<Or you could add LPT1 to the ports your printer is "connected" to (in the Ports tab). then, since the printer isn't there in LPT1, Windows will redirect the print job to the USB port the printer is on.>>
but I don't understand how to implement it. How do I add LPT1 to the ports? Could you please ellaborate?
FWIW, I am using a pc with W98.
-
May 22nd, 2007, 02:52 PM
#4
Re: Transferring results of a QBASIC calculation to WORD
ugh windows 98. Under the properties for that printer, there should be an option to add virtual ports. Check the printers menu in control panel. right click the printer, click the ports tab. it is all there. and i am not judging win 98. I have dos on one of my computers as a dual boot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|