See the Print Wizard documentation and the Print Wizard 2.6 ReadMe file for additional information. This file contains notes on an changes that have taken place in recent releases. ============================================ Print Wizard's PWLPD Through Version 2.6zb ============================================ Changes History: version 2.4 * Added SysTray capabilities and forms dialogs * Changed to handle parameters thru dialog and ini file * Changed to separate Main in to MainInit, MainListen, MainExit * Changed to set select as Poll (timeout (0,0)) * Changed to always do status to screen dialog, based on ini file * Changed to process control record info and store in thread-safe variables version 2.6 11-29-2001 - Added "T" title to ctlrecord format - Corrected some display problems in queue setup - Added parsing of command line for type=2 for variable expansion %T (title record) %J (job record) %U (user record) %1 (fullfilename) - Made more "thread-safe" - Set artificial limit on memo lines, currently at 1000 12-06-2001 - Now carries 'N' control record filename and fullname (file + path) throughout - Pass control record info to each necessary routine (thread safe) - Corrected problem with incorrect printer in status and kill - Added file overwrite option and filename altering by default ("$" is pre-pended to filename) - Cleaned up security and queue handling - No anonymous queues allowed thru, now must have a default set (see PWLPDQ). Added proper handling to routines. - Checked wildcarding on 'H' (host) control and 'P' (party or user) control record - Modified and cleaned up messages and memo 2-12-2002 - Added systools component for droptarget to enable printing 8-29-2002 - Corrected problems with control record handling and options - Added support to pass on as much information from lpr as possible on the command line. LPR switch (from Linux lpr) Control header PWLPD variable Default value N - filename %1 -J J - jobname %J -m M - mail address %M -C C - class %C H - host %H -T T - title %T -U <user> P - user %U <Unix login> version 2.6m 9-24-2002 - Corrected a problem when 'N' does not contain a filename 9-26-2002 - Corrected a problem when receive_data done before receive_control and we then get a new filename in an 'N' record. - Cleaned up file name handling throughout pwlpd1, using rfullname everywhere. - Corrected dir-path for temp files when blank, to let it default to Windows temp directory (allows cleanup in Windows to take care of leftovers) - Added Preview checkbox on Setup and ini item for printwizard preview - Increased field size of Miscellaneous on Setup - CreateProcess now uses SW_HIDE so Preview will pop up 10-2-2002 - GetTempFileName may fail if bad path, so let user know and reset to Windows path - Added error dialog if try to add temp path of '\' only in QSetup version 2.6s 12-20-2002: * Made certain errors on starting the service, such as fail to bind, non-fatal. * Handle filenames containing a space, in calling Printwiz.exe * Convert any illegal characters in incoming filenames * If the queue specifies "debug" for Printwiz, add "/Lprintwiz.log" to create a logfile version 2.6t 7-2-2003 - Changed to check rename routine when a file may already exist. - Changed rename messages slightly to know where they were happening at version 2.6za 4-13-2004 - Added check to see if we get a job name and then to carry it forward as Job and DocName version 2.6zb 6-25-2004 - Added check for valid filtercommand name to prevent GPFs ("Custom" program name). - Allowed a null filtercommand to just create the file and post a message, (this provides a way to simply create the file on the PC with no actions). - Due to problems on certain sites, switched renames to come in as <file>$.ext rather than '$' first - Added new Queue parameter, UseTempFileNames for those that do NOT want to force a file name on "Custom", but still obey the temp directory -- (this does NOT carry forward an extension, but has the default Windows ".tmp" extension) So you can now have PWLPD simply capture incoming print file information and output it to a file rather than needing to take an action with it. To do this, simply enter a blank name in the Queue Properties "Custom Program" field (must select "Custom" first). These last two could result in something similar to the following. Some manual or script process would have to clean out this directory. An upper limit of 200 duplicate file attempts would be tried before an error is reported. Directory of C:\temp\pw 06/25/2004 02:24 PM <DIR> . 06/25/2004 02:24 PM <DIR> .. 06/25/2004 02:19 PM 83 lpd10.tmp 06/25/2004 02:19 PM 83 lpd11.tmp 06/25/2004 02:23 PM 83 lpd12.tmp 06/25/2004 02:23 PM 83 lpd13.tmp 06/25/2004 02:23 PM 83 lpd14.tmp 06/25/2004 02:19 PM 83 lpdF.tmp 06/25/2004 02:23 PM 83 myfile$$$$$.xyz 06/25/2004 02:23 PM 83 myfile$$$$.xyz 06/25/2004 02:23 PM 83 myfile$$$.xyz 06/25/2004 02:20 PM 83 myfile$$.xyz 06/25/2004 02:20 PM 83 myfile$.xyz 06/25/2004 02:20 PM 83 myfile.xyz 12 File(s) 996 bytes 2 Dir(s) 784,711,680 bytes free