Introduction
I welcome any feedback / improvements to this. It has only been tested to a limited extent.
Instructions for Baan IV (no idea whether the same applies to other Baan versions)
1. Rename the included "ascii.txt" file attachment to "ascii" and place in ${BSE}/lib/printinf/a
2. Create one or more paper types for it, with maximum paper width (e.g. 999) and the paper height you want.
3. Create a script/program to process the resulting output.
4. Create a Baan device ("Direct" device type) using the ascii printer driver and paper type you created. Set the Device Queue to execute the script/program from step 4. (Make sure to specify %s as an argument for the output file, and optionally %d for # of copies if it will be supported)

Currently, the output will have ^M (CR) at the end of each line. I do not know how to configure the printinf file to eliminate those. Therefore:
5. Modify the script/program from step 3 to strip the ^M. This is desirable for UNIX, but may not be for Windows server.
Advantages vs. "Rewrite file"
1. Specify multiple copies when printing (must be supported by processing script/program)
2. Specify page range (e.g. only output pages 1 - 4 to file)
3. Change paper type, allowing convenient change of page height with a single device
Disadvantages
1. Inability of user to specify the filepath of the output in the Printer Dialog window.
Downloads
Requirements
Comments