I am building a script to print a Laserfiche entry using the PrintById method in Client Automation Tools. I noticed that the method does not return anything. Is there any way to ascertain whether the print was successful and if so, when it occurred? The printer could be offline or out of paper, for example.
Question
Question
Answer
The PrintById method sends the document to the printer, which could fail for the reasons you mentioned without the client knowing. You could try using the print spooler API to monitor for the job once the PrintById method returns.
Thank you. I tried running the script through a Workflow. All it does it use the open LF Client window, log in, retrieve a field value from an entry, then call PrintById and the "SDK script" activity just seems to hang indefinitely. I let it sit for 20 minutes and nothing happened. The LF session shows up in Admin Console, so that's not the problem.
Can the print method not time out?
Workflow and CAT are not compatible, CAT requires a windows desktop session, which Workflow does not have because it is running as a service.
It sounds like you need to bypass CAT and use the Windows print spooler API directly, or find a 3rd party package that can print from a Windows service.
Would I be able to use the ImageEnable.PrintDocument method through Workflow?
No, it has the same limitation because it goes through the windows client.