Date: Sat, 27 Aug 2005 09:14:57 -0300 From: madodel at ptdprolog.net Subject: [VOICENWS] SW: djprint version 0.51 is available for download ++ From the VOICE OS/2-eComStation News Service http://www.os2voice.org ++ From: "Don Hawkinson" 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 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. 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. 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: MPRINT (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 /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 /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" 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 program may be downloaded at: http://home.tulsaconnect.com/dwhawk/djprint.zip Don Hawkinson , author of CCA, DH-Grep-PM, PMStripper, Pastry Box, and DH_ClipSave/2 http://www.dwhawkinson.com dwhawkDESPAM at DESPAMintcon.net -- Warpstock 2005 - Hershey, Pennsylvania, Oct. 6-9 http://www.warpstock.org Warpstock Europe 2005 - Dresden, Germany, Nov. 18-20 http://www.warpstock.net [Moderator's note: All posts are sent without guarantee to the accuracy of the content. We try to verify details and URLs but this is an entirely volunteer run list, so 100% fact checking and the quality/useability of products announced here is impossible. If you respond to this post please remove the DESPAM from the poster's email addresses. Please do not send requests for information about a specific post to the moderator unless it is an update or I sent it.] -- To unsubscribe yourself from this list, send the following message to majormajor at os2voice.org unsubscribe news your.email.address at here end Or, visit http://www.os2voice.org/MailingLists.html If you have an announcement you would like posted to the VOICE News list, please send it to submit at os2voice.org or go to http://www.os2voice.org/fSubNews.html . Please include a valid reply address and a real contact name. If you wish to comment on this post, please reply to feedback at os2voice.org