I think that I am satisfied with the options and features of DJPRINT, so this should be one of the last releases before version 1.0. If you have questions about the functions of DJPRINT, please let me know so that I can use your questions to improve the limited documentation. djprint version 0.55 DJPRINT was intended as a method to list source code on my HP DeskJet 632c. I decided that I would make it available to other OS/2 and eCS users. I put a work-in-progress version on my web site and asked for comments and suggestions. I got a lot of suggestions and most of them were added as options to DJPRINT. I also found out that the HP PCL 3 command set was supported by many printers - not just HP printers. The ones that I know about are shown below. HP Deskjet 932C Xerox Phaser 8550 HP LaserJet II HP DeskJet 340 Brother HD 5150D IBM 4019 laser printer HP Laserjet 4050N HP DeskJet 632C The default printing mode of DJPRINT is to assume the paper is US letter size (8.5 x 11), 6 lpi , and line numbering is turned on. The printer is also put into compressed print, but this is not optional. An important function of DJPRINT is line wrapping. Long lines are split into multiple lines. Unless the line numbering is turned off, the same line number is used for wrapped lines. If line number 10 needs to be wrapped to fit on the page, all of the wrapped portions of line 10 will be numbered 10. This is done so that the line numbers refelct the actual source line number. A plus sign is inserted before each wrapped line to make certain the user knows the line has been wrapped. The line wrap is not intelligent. The line is wrapped at a specific character count - not at the end of a word or blank space. The header and compressed print are not optional, but many other functions are under the users control. The printer may be put into portrait or landscape mode, and the supported paper sizes are A4, letter (US standard size and the default), and legal (8.5 x 14 inches). The user also has the option of 6 or 8 lines per inch, with 6 lines per inch the default. The user may set the starting source line number, the ending source line number, and start the page numbering at number other than one. Setting the starting page number does not change where the program starts printing the source lines, it is only a cosmetic change. Changes: Version .055 added an option to put the printer in 12 cpi mode instead of compressed print mode. That option is /NO. version 0.51 changed the code to look in the current directory for options.djp and if not found, in the directory where djprint.exe is located. Version 0.50 added an options file called OPTIONS.DJP which must be present in the current directory. The options are listed on separate lines in the file. The options file is proccessed before the command line, so any command line options override the file options. The options in the file must start at column 1 and must start with a forward slash. Lines that start with any other characters are ignored. Verson 0.35 added an intial page number setting. The /Ixx option sets the intial page number to xx instead of 1. This option along with the /Hxx and /Txx options will let the user replace specific pages from a printed set. For example, if page 10 was damaged and started with with line 571 and ended with 628, the options /I10 /H571 /T628 would print a replacement page 10. Verson 0.33 added manual duplex printing! The option swtich is /DU or /du The output is first sent to the file testprn and then that file is split into oddprn and evenprn. The file oddprn is sent to the printer, the user is prompted to reload the paper and then the file evenprn is printed. If the /F option is used, the final output goes to the file testprn2. Version 0.31 changed the method used to display the usage and error messages to the screen. The usage information and the file being printed message may be redirected and the error messages now go to stderr. A /D option for double spacing the source had been added. A /Wx option for selecting the destination printer had been added where x is 1,2, or 3. If you only have one printer or the OS/2 default printer is the destination, you do not need this option. This program is intended to print program listings on HP DeskJet or LazerJet printers. It should work with any printer that supports PCL 3. It sets the printer to print 16.5 characters per inch and sends a reset to the printer when it is finished. The program prints a header at the top of each page and defaults to printing line numbers for each source line. The program does line wrap of lines over 119 characters and can do multiple wraps if the source line is very long. If the source line is wrapped, the line number is not incremented. If line 10 is wrapped three times, there will be three lines labeled 0010. The program also prints a "+" symbol before each wrapped line. Options: DJPRINT (options) file1 ... file9 (options)... where file1 ... file9 may contain wild cards The /R option sends a reset to the printer before printing The /F option causes the output to be sent to the file TESTPRN The /Hxx option starts the printing with line xx The /Txx option ends the printing with line xx The /Ixx option sets the initial page number to xx The /N option stops the printing of line numbers The /NO option puts the printer in 12 cpi mode The /S option puts the printer in 8 lpi mode - 77 lines per page The /L option puts the printer in landscape mode - 155 char per line The /D option adds an extra linefeed for double space mode The /DU option prints the odd pages and then the even pages The user will need reload the odd pages after the prompt The /DUI option sets the printers duplex option The /PA option sets the paper size to A4 (210x297 mm) The /PL option sets the paper size to legal (8.5x14 in) The /Wx option sets the destination printer LPT 1,2, or 3 /W1 or /W2 or /W3 - the default is the default printer The /C option adds a name or comment to the header on page 1 for example: /C"Don Hawkinson" or /c"windows IS a virus!" The /B option issues new page after a user specified string is found for example: /b"page break" or /b"new page" version 0.55 compiled on Sep 01 2005 at 10:07:06 The /F option sends the output to a file called testprn in the current directory. This allows the user to see what would be sent to the printer without using ink or paper. The /W and /B options only require the quotes if the text includes a space. Please let me know if this program works with your printer and the model number of your printer. If you have suggestions for program options, send them too. I will be making frequent changes to the program and will not always make an announcement that a new version is available. You can check the version number by executing the program with no arguments. The pre-release version of the program may be downloaded at: http://home.tulsaconnect.com/dwhawk/djprint.zip