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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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.
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.View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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.....
There's some more info on that here: http://robhagemans.github.io/pcbasic/doc/#printing
(Note that this bit of documentation refers to settings, not to BASIC commands - see http://robhagemans.github.io/pcbasic/doc/#settings for an overview of how to change settings)
View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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?
You need to remove the
#
at the start of the line.View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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?
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.
View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
How do I post the INI-file? You can see that you're dealing with a real beginner.......
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.View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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.