Menu

Printing

Anonymous
2017-06-26
2017-07-07
  • Anonymous

    Anonymous - 2017-06-26

    With PC-BASIC 15.08.1 on a Win7-64, with a working program installed, typing LLIST gives me an error message:

    c:\users\bob\appdata\local\temp\pcbasic-niiri2\pcbasic_print.txt

    This file does not have a program associated with it for performing this action. Please install a program or, if one
    is already installed, create an association in the Default Programs control panel.

     
  • Rob Hagemans

    Rob Hagemans - 2017-06-26

    Looks like you need to associate text files to Notepad or some other program that supports the Windows print verb for text files - Notepad is normally the Windows default association and it's used by PC-BASIC to send output to the printer.

     
  • Anonymous

    Anonymous - 2017-06-27

    Thanks for getting back so quickly. I knew nothing about "association", but Google walked me through it and now everything works fine. Now, I'll try to figure out how to print without quiting the program.....

     
  • Anonymous

    Anonymous - 2017-07-04

    I used %AppData%\pcbasic\PCBASIC.INI to find my INI file, and changed the print-trigger command to read # print-trigger=page;choices:close,page,line, and saved the file. Nothing changed--I still have to close the program to get it to print. What should I do now?

     
    • Rob Hagemans

      Rob Hagemans - 2017-07-04

      You need to remove the # at the start of the line.

       
  • Anonymous

    Anonymous - 2017-07-06

    I did, and saved the file. Nothing happened--I still have to run SYSTEM to print. Am I working in the correct file? I used %AppData%\pcbasic\PCBASIC.INI to find it, and it gives me a whole list of items all preceding with the # symbol. If # means ignore, where is the file that specifies the actual options?

     
  • Rob Hagemans

    Rob Hagemans - 2017-07-07

    There is no file with the 'actual options' - you are working with the correct options file. The lines are examples and are therefore preceded by the # to comment them out (i.e. make them inactive), as per the INI file format definition (see https://en.wikipedia.org/wiki/INI_file). If no option is given, a built-in default is used. If you want to find out more about this, please consult the documentation.

    If you set print-trigger=page the printer should be activated after each form feed character. This works on mycomputer - if it doesn't work on yours then I don't know why this is. Unfortunately, there are many settings that PC-BASIC has no control over, such as your Windows and Notepad printing settings. Any of those could have an effect, and unfortunately I am unable to help you with that.

    If you post your INI-file I'm willing to have a look at it to see if there are any issues in that file.

     
  • Anonymous

    Anonymous - 2017-07-08

    How do I post the INI-file? You can see that you're dealing with a real beginner.......

     
  • Rob Hagemans

    Rob Hagemans - 2017-07-10

    There's a link "Add attachments" under where you type forum messages. You can use it to attach the INI file.

    Does your code actually send page breaks (form feeds) by the way? Without those it won't trigger a print. Try LPRINT CHR$(12) and see if it sends the page to the printer.

     
  • Anonymous

    Anonymous - 2017-07-10

    Oops. My bad. Works fine. I was expecting for the program to print everytime it reached an LPRINT command and then cause the printer to stop and wait for the next LPRINT command. Silly me......
    Thanks for your patience. We really appreciate it.