>How do you print just a formated text document to the printer? It is not a report that needs a database to work, just instructions on how to use my program with the barcode reader. In frustration, I used the report form and had to link it to a database that I didn't need data from, just to make it work. However, it is a pain to type little segments in a label field and position them on the sheet and now I need more than 1 sheet, so I will have to setup a database with memo fields to make this work. There must be a better way! Any thoughts on how to do this?
>
You can copy a file to the printer using the CopyFile() API - there's a FAQ entry that covers the exact process (make sure to put a terminating formfeed character at the end of file to make sure the last page kicks out), or you can invoke Notepad to print a text file for you - try:
RUN /N NOTEPAD /P C:\AUTOEXEC.BAT