Issues with batch file creation
Printed From: www.exp-systems.com
Category: PDF reDirect
Forum Name: Using PDF reDirect
Forum Discription: Questions and Comments on using PDF reDirect Freeware and Pro
URL: http://www.exp-systems.com/Forum_exp/forum_posts.asp?TID=473
Printed Date: 23 Nov 24 at 1:35AM
Topic: Issues with batch file creation
Posted By: Kerry
Subject: Issues with batch file creation
Date Posted: 24 Feb 09 at 11:16AM
I'm evaluating PDF Redirector and am fairly impressed but... I'm trying to use the batch printer with a Honeywell product for reporting. I have it set to automatically create sequential file names. Testing it from notepad works fine but when my application actually sends print files it never creates the pdf file. If I pause the batch print queue you can see the files being created so my application is feeding it.
Is there any logging that occurs? Any suggestions?
|
Replies:
Posted By: Michel_K17
Date Posted: 25 Feb 09 at 10:15PM
Hi there,
The error logging is turned off by default, but it could be a good way to find out what is wrong.
If you open PDF reDirect Pro, and go into the Preferences >>
General, and look for the button to turn on the error logging. Finally
exit out of the program.
Go back, and try to create the PDF
files again, and wait until you are sure that it has failed. Then, go
back into the preferences, stop the error logging, and take a look at
the log file (there is a button for that).
If the log is
confusing, then post it here, or send it to me via e-mail (exp [at]
exp-systems [dot] com), and I will take a look. Do not submit it as a
bug report as I look at those reports only occasionally.
I hope that will help to find the problem.
Cheers!
Michel
P.S.
To be sure: is the program that you are printing from a Windows
program? Some companies still try to use old DOS apps, and those do not
work. Another way to test: can you print from your App to the "PDF
reDirect Pro" printer?
------------- Michel Korwin-Szymanowski
EXP Systems LLC
|
Posted By: Kerry
Date Posted: 26 Feb 09 at 9:03AM
Just a bit about the application. It is a Honeywell EBI server and I'm trying to set it up to automatically create daily reports in a shared file area for folks to look at. The application is definitely a windows app but the printer setup is sort of odd.
Here's the log.
57,28261.58,"UI",0,"" 57,28261.58,"UI",1,"" 57,28261.58,"UI",2,"------------------------------------------------------------" 57,28261.58,"UI",3,"START LOGGING: 2/26/2009 7:51:01 AM" 57,28261.58,"UI",4,"User clicked on checkbox to start Logging" 57,28261.58,"UI",5,"GENERATE EVENT: IGVHM" 57,28261.69,"UI",6,"---------- RECEIVED EVENT -----------" 57,28261.69,"UI",7,"IGVH" 57,28261.69,"UI",8,"Clear Job List" 57,28270.95,"UI",9,"Saving Preferences to file..." 57,28270.97,"UI",10," - Completed Writing to INI Preferences File" 57,28270.97,"UI",11,"GENERATE EVENT: IOMGM" 57,28271.11,"UI",12,"***************************************" 57,28271.11,"UI",13," AN UNEXPECTED ERROR HAS OCCURED in SaveBatchSettings" 57,28271.11,"UI",14,"***************************************" 57,28271.11,"UI",15," - Error Number = 9 - Subscript out of range" 57,28271.11,"UI",16,"---------- RECEIVED EVENT -----------" 57,28271.11,"UI",17,"IOMG" 57,28271.11,"UI",18,"Clear Job List" 57,28326.19,"UI",19," - Loading the Stamp ini data." 57,28328.19,"UI",20,"STOP LOGGING: 2/26/2009 7:52:08 AM" 57,28261.69,"CA",0,"" 57,28261.69,"CA",1,"" 57,28261.69,"CA",2,"------------------------------------------------------------" 57,28261.69,"CA",3,"START LOGGING: 2/26/2009 7:51:01 AM" 57,28261.69,"CA",4,"Return to UI Message = " 57,28261.69,"CA",5,"GENERATE EVENT: IGVH" 57,28271.11,"CA",6,"---------- RECEIVED EVENT -----------" 57,28271.11,"CA",7,"IOMGM" 57,28271.11,"CA",8," - Get User Preferences Data" 57,28271.11,"CA",9,"STOP LOGGING: 2/26/2009 7:51:11 AM" 57,28271.11,"CA",0,"" 57,28271.11,"CA",1,"" 57,28271.11,"CA",2,"------------------------------------------------------------" 57,28271.11,"CA",3,"START LOGGING: 2/26/2009 7:51:11 AM" 57,28271.11,"CA",4,"Return to UI Message = " 57,28271.11,"CA",5,"GENERATE EVENT: IOMG" 57,28328.33,"CA",6,"---------- RECEIVED EVENT -----------" 57,28328.33,"CA",7,"PSOIM" 57,28328.33,"CA",8," - Get User Preferences Data" 57,28328.33,"CA",9,"STOP LOGGING: 2/26/2009 7:52:08 AM"
I get similar messages printing to the PDF ReDirect Pro printer as shown below.
57,28261.58,"UI",0,"" 57,28261.58,"UI",1,"" 57,28261.58,"UI",2,"------------------------------------------------------------" 57,28261.58,"UI",3,"START LOGGING: 2/26/2009 7:51:01 AM" 57,28261.58,"UI",4,"User clicked on checkbox to start Logging" 57,28261.58,"UI",5,"GENERATE EVENT: IGVHM" 57,28261.69,"UI",6,"---------- RECEIVED EVENT -----------" 57,28261.69,"UI",7,"IGVH" 57,28261.69,"UI",8,"Clear Job List" 57,28270.95,"UI",9,"Saving Preferences to file..." 57,28270.97,"UI",10," - Completed Writing to INI Preferences File" 57,28270.97,"UI",11,"GENERATE EVENT: IOMGM" 57,28271.11,"UI",12,"***************************************" 57,28271.11,"UI",13," AN UNEXPECTED ERROR HAS OCCURED in SaveBatchSettings" 57,28271.11,"UI",14,"***************************************" 57,28271.11,"UI",15," - Error Number = 9 - Subscript out of range" 57,28271.11,"UI",16,"---------- RECEIVED EVENT -----------" 57,28271.11,"UI",17,"IOMG" 57,28271.11,"UI",18,"Clear Job List" 57,28326.19,"UI",19," - Loading the Stamp ini data." 57,28328.19,"UI",20,"STOP LOGGING: 2/26/2009 7:52:08 AM" 57,28650.03,"UI",21,"Saving Preferences to file..." 57,28650.05,"UI",22," - Completed Writing to INI Preferences File" 57,28650.05,"UI",0,"" 57,28650.05,"UI",1,"" 57,28650.05,"UI",2,"------------------------------------------------------------" 57,28650.05,"UI",3,"START LOGGING: 2/26/2009 7:57:30 AM" 57,28650.05,"UI",4,"User clicked on checkbox to start Logging" 57,28650.05,"UI",5,"GENERATE EVENT: HSRBM" 57,28650.13,"UI",6,"---------- RECEIVED EVENT -----------" 57,28650.13,"UI",7,"HSRB" 57,28650.13,"UI",8,"Clear Job List" 57,28653.95,"UI",9,"Saving Preferences to file..." 57,28653.97,"UI",10," - Completed Writing to INI Preferences File" 57,28653.97,"UI",11,"GENERATE EVENT: SNGTM" 57,28654.13,"UI",12,"***************************************" 57,28654.13,"UI",13," AN UNEXPECTED ERROR HAS OCCURED in SaveBatchSettings" 57,28654.13,"UI",14,"***************************************" 57,28654.13,"UI",15," - Error Number = 9 - Subscript out of range" 57,28654.14,"UI",16,"---------- RECEIVED EVENT -----------" 57,28654.14,"UI",17,"SNGT" 57,28654.14,"UI",18,"Clear Job List" 57,28674.31,"UI",19," - Loading the Stamp ini data." 57,28676.44,"UI",20,"STOP LOGGING: 2/26/2009 7:57:56 AM" 57,28754.53,"UI",21,"Saving Preferences to file..." 57,28754.55,"UI",22," - Completed Writing to INI Preferences File" 57,28754.55,"UI",0,"" 57,28754.55,"UI",1,"" 57,28754.55,"UI",2,"------------------------------------------------------------" 57,28754.55,"UI",3,"START LOGGING: 2/26/2009 7:59:14 AM" 57,28754.55,"UI",4,"User clicked on checkbox to start Logging" 57,28754.55,"UI",5,"GENERATE EVENT: ICCNM" 57,28754.7,"UI",6,"---------- RECEIVED EVENT -----------" 57,28754.7,"UI",7,"ICCN" 57,28754.7,"UI",8,"Clear Job List" 57,28757.56,"UI",9,"Saving Preferences to file..." 57,28757.58,"UI",10," - Completed Writing to INI Preferences File" 57,28757.58,"UI",11,"GENERATE EVENT: KOKBM" 57,28757.7,"UI",12,"***************************************" 57,28757.7,"UI",13," AN UNEXPECTED ERROR HAS OCCURED in SaveBatchSettings" 57,28757.7,"UI",14,"***************************************" 57,28757.7,"UI",15," - Error Number = 9 - Subscript out of range" 57,28757.72,"UI",16,"---------- RECEIVED EVENT -----------" 57,28757.72,"UI",17,"KOKB" 57,28757.72,"UI",18,"Clear Job List" 57,28776,"UI",19," - Loading the Stamp ini data." 57,28777.8,"UI",20,"STOP LOGGING: 2/26/2009 7:59:37 AM" 57,28261.69,"CA",0,"" 57,28261.69,"CA",1,"" 57,28261.69,"CA",2,"------------------------------------------------------------" 57,28261.69,"CA",3,"START LOGGING: 2/26/2009 7:51:01 AM" 57,28261.69,"CA",4,"Return to UI Message = " 57,28261.69,"CA",5,"GENERATE EVENT: IGVH" 57,28271.11,"CA",6,"---------- RECEIVED EVENT -----------" 57,28271.11,"CA",7,"IOMGM" 57,28271.11,"CA",8," - Get User Preferences Data" 57,28271.11,"CA",9,"STOP LOGGING: 2/26/2009 7:51:11 AM" 57,28271.11,"CA",0,"" 57,28271.11,"CA",1,"" 57,28271.11,"CA",2,"------------------------------------------------------------" 57,28271.11,"CA",3,"START LOGGING: 2/26/2009 7:51:11 AM" 57,28271.11,"CA",4,"Return to UI Message = " 57,28271.11,"CA",5,"GENERATE EVENT: IOMG" 57,28328.33,"CA",6,"---------- RECEIVED EVENT -----------" 57,28328.33,"CA",7,"PSOIM" 57,28328.33,"CA",8," - Get User Preferences Data" 57,28328.33,"CA",9,"STOP LOGGING: 2/26/2009 7:52:08 AM" 57,28650.13,"CA",0,"" 57,28650.13,"CA",1,"" 57,28650.13,"CA",2,"------------------------------------------------------------" 57,28650.13,"CA",3,"START LOGGING: 2/26/2009 7:57:30 AM" 57,28650.13,"CA",4,"Return to UI Message = " 57,28650.13,"CA",5,"GENERATE EVENT: HSRB" 57,28654.13,"CA",6,"---------- RECEIVED EVENT -----------" 57,28654.13,"CA",7,"SNGTM" 57,28654.14,"CA",8," - Get User Preferences Data" 57,28654.14,"CA",9,"STOP LOGGING: 2/26/2009 7:57:34 AM" 57,28654.14,"CA",0,"" 57,28654.14,"CA",1,"" 57,28654.14,"CA",2,"------------------------------------------------------------" 57,28654.14,"CA",3,"START LOGGING: 2/26/2009 7:57:34 AM" 57,28654.14,"CA",4,"Return to UI Message = " 57,28654.14,"CA",5,"GENERATE EVENT: SNGT" 57,28676.56,"CA",6,"---------- RECEIVED EVENT -----------" 57,28676.56,"CA",7,"QNYAM" 57,28676.56,"CA",8," - Get User Preferences Data" 57,28676.56,"CA",9,"STOP LOGGING: 2/26/2009 7:57:56 AM" 57,28754.7,"CA",0,"" 57,28754.7,"CA",1,"" 57,28754.7,"CA",2,"------------------------------------------------------------" 57,28754.7,"CA",3,"START LOGGING: 2/26/2009 7:59:14 AM" 57,28754.7,"CA",4,"Return to UI Message = " 57,28754.7,"CA",5,"GENERATE EVENT: ICCN" 57,28757.7,"CA",6,"---------- RECEIVED EVENT -----------" 57,28757.7,"CA",7,"KOKBM" 57,28757.7,"CA",8," - Get User Preferences Data" 57,28757.72,"CA",9,"STOP LOGGING: 2/26/2009 7:59:17 AM" 57,28757.72,"CA",0,"" 57,28757.72,"CA",1,"" 57,28757.72,"CA",2,"------------------------------------------------------------" 57,28757.72,"CA",3,"START LOGGING: 2/26/2009 7:59:17 AM" 57,28757.72,"CA",4,"Return to UI Message = " 57,28757.72,"CA",5,"GENERATE EVENT: KOKB" 57,28778,"CA",6,"---------- RECEIVED EVENT -----------" 57,28778,"CA",7,"CYJTM" 57,28778,"CA",8," - Get User Preferences Data" 57,28778,"CA",9,"STOP LOGGING: 2/26/2009 7:59:38 AM"
|
Posted By: Michel_K17
Date Posted: 26 Feb 09 at 11:27PM
Something is very, very wrong.
First, please ignore all the errors that say ("AN UNEXPECTED ERROR HAS OCCURED in SaveBatchSettings"). These are actually OK.
Here is my log when I print to the Batch printer:
57,92245214,"CA",2,"------------------------------------------------------------" 57,92245216,"CA",3,"START LOGGING: 2/26/2009 10:17:05 PM" 57,92245228,"CA",4,"Windows Version: 2- 5.1.2600 Service Pack 3" 57,92245231,"CA",5,"AppData Path: C:\Documents and Settings\Michel_K17\Application Data\PDF reDirect\" 57,92245233,"CA",6,"Resources Path: C:\Program Files\PDF reDirect\" 57,92245235,"CA",7,"Temp Path: C:\Documents and Settings\Michel_K17\Application Data\PDF reDirect\Temp\" 57,92245238,"CA",8,"Thumbnails Path: C:\Documents and Settings\Michel_K17\Application Data\PDF reDirect\Temp\Thumbnails\" 57,92245240,"CA",9,"Temp Path for Unicode Users: C:\WINDOWS\Temp\PDF reDirect\ 868\" 57,92245244,"CA",10,"Get Command Line Data." 57,92245245,"CA",11,"-> UniqueID is: B092244968" 57,92245247,"CA",12," - Loading the Batch ini data for MyBatchPrinter" 57,92245250,"CA",13,"-> Batch Printer found as: MyBatchPrinter" 57,92245252,"CA",14,"-> Document Name is: EXP Systems Forum: Issues w___" 57,92245254,"CA",15,"-> UserName is: Michel_K17"
Yours is more like this: 57,28754.7,"CA",0,"" 57,28754.7,"CA",1,"" 57,28754.7,"CA",2,"------------------------------------------------------------" 57,28754.7,"CA",3,"START LOGGING: 2/26/2009 7:59:14 AM" 57,28754.7,"CA",4,"Return to UI Message = " 57,28754.7,"CA",5,"GENERATE EVENT: ICCN" 57,28757.7,"CA",6,"---------- RECEIVED EVENT -----------" 57,28757.7,"CA",7,"KOKBM" 57,28757.7,"CA",8," - Get User Preferences Data" 57,28757.72,"CA",9,"STOP LOGGING: 2/26/2009 7:59:17 AM"
Which does not make sense: it looks like the printer is not sending the data to my program. I'm going to guess that there is something wrong with the printer port monitor where the code all begins.
Unfortunately, there is no way to turn on the log for this part of the code. instead, I will need to send you a special file with the logging turned on ahead of time. I will send you an e-mail directly with the specific instructions.
This is definitely more complicated than I had hoped.
Since you can print to Notepad, it could have to do then with your Honeywell app. What is it which is odd about the printer setup in that program you are using?
Thank you for your patience with this problem.
------------- Michel Korwin-Szymanowski
EXP Systems LLC
|
Posted By: Kerry
Date Posted: 27 Feb 09 at 8:15AM
From within the Honeywell app named Station there is another called Quick Builder. Within Quick Builder you must add the printer with the exact spelling and case as the actual printer queue name. Once it is added there you download the info back to the Station app. Within Station you go to configure system hardware, printers and the printer you just added will be in a list but a check box must be selected to activate it. Lots of hoops to jump through.
|
Posted By: Kerry
Date Posted: 01 Jul 09 at 11:04AM
After ignoring this project for several months I'm back. It still is doing much the same thing. With the printer paused it shows a 96.3 kb file of four pages owned by mngr and named "Crystal Reports - alarm.cr". When the printer is un-paused (if that is a word) it processes but never outputs a pdf file.
I'm not sure if you sent the piece for the additional logging but here is the latest log from where I just restarted it.
182,35387.52,"UI",2,"------------------------------------------------------------" 182,35387.52,"UI",3,"START LOGGING: 7/1/2009 9:49:47 AM" 182,35387.52,"UI",4,"Windows Version: 2- 5.2.3790 Service Pack 2" 182,35387.52,"UI",5,"AppData Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\" 182,35387.52,"UI",6,"Resources Path: C:\Program Files\PDF reDirect\" 182,35387.52,"UI",7,"Temp Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\Temp\" 182,35387.52,"UI",8,"Thumbnails Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\Temp\Thumbnails\" 182,35387.52,"UI",9,"Recover the CommandLine" 182,35387.52,"UI",10,"Instance started by user" 182,35387.52,"UI",11,"Load Library cbak4exp.dll..." 182,35387.52,"UI",12,"...Success." 182,35387.52,"UI",13,"Setup Comms on Channel: 191097439" 182,35387.52,"UI",14,"Starting Capture..." 182,35387.55,"UI",15,"Shell Command Returns. Check Result..." 182,35387.55,"UI",16,"...Success" 182,35387.55,"UI",17,"SPECIAL - Quit if this application is an beta or RC, and expiry date has been reached" 182,35387.55,"UI",18,"Check Registration" 182,35387.66,"UI",19,"Registered to: Kerry Goertzen" 182,35387.66,"UI",20,"Initialize form controls" 182,35387.66,"UI",21,"Show Last Settings used" 182,35387.66,"UI",22,"lstFolders_SelectionChange to: Desktop" 182,35387.66,"UI",23,"Retrieve Version Number from data_v.dat" 182,35387.66,"UI",24,"Version: v2.2.8" 182,35387.66,"UI",25,"Setup Regular and FTP Controls" 182,35387.66,"UI",26,"Load all Stamps" 182,35387.67,"UI",27,"Setup Tab" 182,35387.67,"UI",28,"Prefs-Last_Tab = 8" 182,35387.67,"UI",29,"Received Callback Handle from Capture." 182,35387.67,"UI",30,"DocName = " 182,35387.67,"UI",31,"Show Proper Mode (Basic or Pro)" 182,35387.67,"UI",32,"Setup Nearly Complete - Hide Splash Screen" 182,35387.88,"UI",33,"Show Tab: 8" 182,35392.64,"UI",34," - Loading the Stamp ini data." 182,35393.92,"UI",35,"Show user the log file" 182,34985.53,"CA",0,"" 182,34985.53,"CA",1,"" 182,34985.53,"CA",2,"------------------------------------------------------------" 182,34985.53,"CA",3,"START LOGGING: 7/1/2009 9:43:05 AM" 182,34985.53,"CA",4,"Return to UI Message = " 182,34985.53,"CA",5,"GENERATE EVENT: JBRW" 182,35330.2,"CA",6,"---------- RECEIVED EVENT -----------" 182,35330.2,"CA",7,"JRXYM" 182,35330.2,"CA",8," - Get User Preferences Data" 182,35330.2,"CA",9,"STOP LOGGING: 7/1/2009 9:48:50 AM" 182,35330.2,"CA",0,"" 182,35330.2,"CA",1,"" 182,35330.2,"CA",2,"------------------------------------------------------------" 182,35330.2,"CA",3,"START LOGGING: 7/1/2009 9:48:50 AM" 182,35330.2,"CA",4,"Return to UI Message = " 182,35330.2,"CA",5,"GENERATE EVENT: JRXY" 182,35335.22,"CA",6,"---------- RECEIVED EVENT -----------" 182,35335.22,"CA",7,"BQJXZ" 182,35335.22,"CA",8,"START: Quit. Start Cleanup..." 182,35335.22,"CA",9,"-->Cleanup UniqueID Thumbnails" 182,35335.22,"CA",10,"-->Cleanup Thumbnail Cache until less than 50 MB." 182,35335.22,"CA",11,"-->Cleanup Thumbnails older than 60 days." 182,35335.22,"CA",12,"-->Cache Size is now = 0.0 MB." 182,35335.22,"CA",13,"Stopped Process_Job_List. Stop Comms..." 182,35335.22,"CA",14,"...Comms Stopped." 182,35335.22,"CA",15,"STOP LOGGING: 7/1/2009 9:48:55 AM" 182,35387.53,"CA",0,"" 182,35387.53,"CA",1,"" 182,35387.53,"CA",2,"------------------------------------------------------------" 182,35387.53,"CA",3,"START LOGGING: 7/1/2009 9:49:47 AM" 182,35387.55,"CA",4,"Windows Version: 2- 5.2.3790 Service Pack 2" 182,35387.55,"CA",5,"AppData Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\" 182,35387.55,"CA",6,"Resources Path: C:\Program Files\PDF reDirect\" 182,35387.55,"CA",7,"Temp Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\Temp\" 182,35387.55,"CA",8,"Thumbnails Path: C:\Documents and Settings\Administrator\Application Data\PDF reDirect\Temp\Thumbnails\" 182,35387.55,"CA",9,"Get Command Line Data." 182,35387.55,"CA",10,"-> UniqueID is: 191097439" 182,35387.55,"CA",11,"-> Who started me is = 4" 182,35387.55,"CA",12,"Load Library C:\Program Files\PDF reDirect\bin\gsdll32.dll..." 182,35387.55,"CA",13," ...Success." 182,35387.55,"CA",14,"Start GS stdio. Code = 0" 182,35387.55,"CA",15,"GS Version (Code = 0)..." 182,35387.55,"CA",16," ->Revision=815" 182,35387.55,"CA",17," ->RevisionDate=20040922" 182,35387.55,"CA",18," ->GS Set Poll returns: 0" 182,35387.55,"CA",19,"Load Library C:\Program Files\PDF reDirect\jpeg4exp.dll..." 182,35387.55,"CA",20," ...Success." 182,35387.55,"CA",21,"Loaded QuickPDF Library v5.22 ( 1 )" 182,35387.55,"CA",22,"Load Library C:\Program Files\PDF reDirect\cbak4exp.dll..." 182,35387.55,"CA",23," ...Success." 182,35387.55,"CA",24,"VISTA: SendKeys {F16}" 182,35387.66,"CA",25,"Acknowledge comms, using channel 191097439" 182,35387.67,"CA",26,"Start Process Loop to Process_Job_List"
|
Posted By: Michel_K17
Date Posted: 02 Jul 09 at 12:11AM
Hi Kerry,
Yes, you definitely need the Port Monitor Logging code.
I will pull your e-mail address from your forum account, and will send you an e-mail with the instructions to follow.
Cheers!
------------- Michel Korwin-Szymanowski
EXP Systems LLC
|
|