You are viewing limited content. For full access, please sign in.

Question

Question

CAT Print Result

SDK
asked on August 2, 2017

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.

0 0

Answer

SELECTED ANSWER
replied on August 2, 2017

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.

1 0
replied on August 2, 2017

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?

0 0
replied on August 2, 2017

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.

0 0
replied on August 2, 2017

Would I be able to use the ImageEnable.PrintDocument method through Workflow?

0 0
replied on August 2, 2017

No, it has the same limitation because it goes through the windows client.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.