Date: Sun, 07 Dec 2008 08:02:10 -0500 From: madodel Subject: [VOICENWS] SW: DJPrint 1.05 ++ From the VOICE OS/2-eCS News Service http://www.os2voice.org ++ From: Don Hawkinson have updated DJPrint to version 1.05 and it may be downloaded from my web page at: http://home.tulsaconnect.com/dwhawk/djprint105.zip DJPrint version 1.05 DJPrint was intended as a method to list source code on my HP DeskJet 632C. Other OS/2 and eCS users have found it useful for various printing tasks. DJPrint should work with any printer that supports the HP PCL 3 commands. The printers that are known to work with DJPrint are listed 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 HP Deskjet 980 Cxi HP Deskjet 990 Cxi HP 450 Lexmark T620 The file "printers" is a list of printers that may work with DJPrint, but have not been tested. 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 (16.5 cpi) print. DJPrint has options that should allow users outside the U.S.A. to also find it useful. The file "charset.djp" contains a list of the character sets that are supported by DJPrint. The default character set is the PC-8 set which is the one used by most OS/2 users in the U.S.A. To select a different character set, edit the file "charset.djp" and move the forward slash "/" from the PC-8 line to the desired character set. The program looks first in the current directory for the file and then in the directory where the executable was located. You should locate the file "charset.djp" in the same directory as the executable since you should not need to change the character set very often. Other than moving the "/" character, do not alter the text in the file. DJPrint looks for an exact match for the text in the file. In addition to being able to select the printer's character set, there is an option to set the paper size to A4. Since the program was intended for source code printing, no attempt was made for intelligent wrapping. The wrap occurs when the line length limit is reached. 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. Many 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. This will allow the user to reprint a specific page in a listing. Since DJPrint has many option switches, the user may create a file called "options.djp" and DJPrint will read the option switches from the file before reading the command line switches. The command line options will override any conflicting options in the options file. 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. DJPrint will look first in the current directory for the "options.djp" file and if not found, then in the directory where DJPrint.exe is located. DJPrint checks for a formfeed character at the start of a line. If one is found a new page with a header is started. Formfeeds that are not at the start of a line are not detected and the new page will not have a header and the lines per page counter will not be reset. DJPrint displays the source characters per line and the source lines per page. This information is displayed before the name of the file being printed is displayed. DJPrint will do manual duplex printing. 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. DJPrint also has an option to send the command to the printer for internal duplex printing - if the printer supports duplex printing. Except for the page break string and the comment string, the options are not case sensitive. Entering DJPrint at the command line with no arguments will cause the program to display a list of the supported options. The order that the options are entered is not significant. The options may be entered before or after the files to be printed. DJPrint will do wild card expansion, so you may enter "*.c" (without the quotes) to print all of the C files in a directory. A typical useage command would look like: DJPrint (options) file1 ... file9 where file1 ... file9 may contain wild cards The file names and options may be mixed in the command line, but the options apply to all the files being printed. Options: The /R option sends a reset to the printer before printing. If you are not the only one using the printer, sending a reset may a good idea. A reset is sent to the printer when DJPrint terminates. The /F option causes the output to be sent to the file TESTPRN. This allows the user to see what would be printed before sending the job to the printer. This is handy when you are exploring the various options. The /Hxx option starts the printing with source line xx, where xx is a decimal number between 1 and 9999. The /Txx option stops the printing with source line xx, where xx is a decimal number between 1 and 9999. The /Ixx option sets the initial page number to xx, where xx is a decimal number between 1 and 9999. This is only a cosmetic setting, it does not change where in the source file printing is started. 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. The /N option stops the printing of line numbers. It does not stop the header line from being printed. The /CPIxx option selects the number of characters per inch, where xx is 10, 12 , 16 , or 20 characters per inch. The /CPIP option selects a proportional font which is about 14 cpi with my printer. The font used may vary with the make and model of the printer. The /CPIPQ option selects a proportional font with letter quality print and is about 14 cpi with my printer. The /CPIPI option selects a proportional font with italic mode print which is about 14 cpi with my printer. The options /CPIPQ and /CPIPI turn off the headers, the line numbers and set the lines per inch to 6 lpi. The /COLOR option tells the printer to use the color cartridge for printing. Used for when the black cartridge is gone or empty. The text is still black. The /S option puts the printer in 8 lines per inch mode. If /CPI20 is also selected, the printer is put in 12 lines per inch mode and the font point size is set to 6 point. This reduces the height of the font and allows the closer line spacing. The /L option puts the printer in landscape mode. The /D option adds an extra linefeed for double space printing. Useful when the printed text will be marked for editing. The /DU option is for manual duplex printing. DJPrint prints the odd pages and then prompts the user to reload the printed pages to print the even pages. The /DUI option sets the printers duplex option. The printer must support duplex printing for this option to work. The /DARK option sets the print mode to bold for darked print. 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 to LPT 1,2, or 3. The default is the default printer that is set on the printer objects. 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 quotes are only needed if the comment contains spaces. The /B option issues new page after a user specified string is found. For example: /b"{page break}" or /b"/* new page */". The quotes are only needed if the comment contains spaces. 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. The text after these two options are the only part of the options that are case sensitive. Please let me know if this program works with your printer and the model number of your printer. You can check the version number by executing the program with no arguments. Don Hawkinson , author of CCA, DH-Grep-PM, PMStripper, Pastry Box, DH_ClipSave/2, DJPrint, and TextHelper http://www.dwhawkinson.com dwhawkDESPAM at DESPAMintcon.net -- For a choice in the future of personal computing, Join VOICE - http://www.os2voice.org [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.php 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/SubmitNews.php . 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