Results 1 to 4 of 4

Thread: Transferring results of a QBASIC calculation to WORD

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    4

    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.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    4

    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.

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    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
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width