PDA

Click to See Complete Forum and Search --> : Transferring results of a QBASIC calculation to WORD


wdc202
May 19th, 2007, 12:58 PM
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.

Al42
May 22nd, 2007, 01:55 PM
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.

wdc202
May 22nd, 2007, 02:23 PM
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.

Lord Orwell
May 22nd, 2007, 02:52 PM
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 ;)