 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jdolson
Joined: 05 Oct 2010 Posts: 8 Country: United States |
|
Error opening print job - FilePrint |
|
I am not able to print a file to a printer.
I'm running 24x7 Scheduler v3.6.10 on a Windows 7 Enterprise server. I have a script that runs every five minutes. The script contains two lines related to printing:
PrinterSetDefault "\\ZMBSAT01P\ZMB24,winspool,Ne13:"
FilePrint local_file_name
The error is:
Job eCW Order Insurance Info execution error. Exit code: -1. An error occured while executing a script: Line 47: Error opening print job.
Line 47 is:
FilePrint local_file_name
The value of local_file_name is (for example, but it errors out on any file):
D:\Temp\ensemble\EcwOrderInsuranceInfo\EcwOrderInsuranceInfo.20101005-091450.dat
A few observations:
(1) The file exists. I know that 24x7 can see the file because, just a few lines before the print, I e-mail the file name and file contents to me.
(2) I am able to print to that printer from the 24x7 PC using WordPad.
(3) The printer is set as the Windows default.
(4) The print job never makes it to the Windows print queue.
Any suggestions???
Thanks,
Jim
|
|
Tue Oct 05, 2010 2:09 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Which program does pop up on the screen when you double click that file in Windows Explorer? Or do you get a prompt to choose the program to open that file with?
Are you running 24x7 as a Windows service?
|
|
Tue Oct 05, 2010 6:50 pm |
|
 |
jdolson
Joined: 05 Oct 2010 Posts: 8 Country: United States |
|
|
|
Hi SysOp
No program pops up when I double-click the file. No application was associated with .dat extensions.
I associated WordPad with .dat files and now it works. Thanks!
Could you take a moment and explain how that affects the FilePrint command?
Thanks,
Jim
|
|
Wed Oct 06, 2010 9:19 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Hi,
The FilePrint command uses Windows built in API functions to open document files in PRINT mode. Windows uses default "driver" application associated with the file extension to print the file. For info please see http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx
|
|
Wed Oct 06, 2010 9:47 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|