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

Question

Question

will we be able to print documents using Laserfiche Business Process from within Laserfiche WF\Business Process.

asked on September 9, 2015

i am new to laserfiche and we are trying a POC to link a couple of documents to the pdf form that gets saved when the form is submitted. we have created workflow and published as a business process, when we invoke the business process (from laserfiche repository) we want to print all the linked documents along with the PDF form in a particular order.

We are able to read the documents linked and even have the documents extracted and combine them (outside LF). We are also able to print the documents outside LF workflow\business process using shell commands or via PDF reader itself. But when we invoke the same commands within LF workflow\Business process. it just would not print the documents.

Please provide your useful insights on this.

Thanks.

0 0

Replies

replied on September 10, 2015

Can you post the code, please? Keep in mind that Workflow runs as a service without a user session, so if you are relying on launching Adobe Reader and printing from it, that's not going to be possible.

0 0
replied on September 10, 2015

ohh okay. i tried to use the ProcessStart with shellexecute false and i tried with the adobe reader as well. i didnt know that it runs as a service. Thanks for your input.

Please find below, the code for your reference.

                ProcessStartInfo psi = new ProcessStartInfo();
                    psi.Arguments = string.Format(" /h /p \"{0}\"",<filePath>);
                    psi.Verb = "print";
                    psi.WindowStyle = ProcessWindowStyle.Hidden;
                    psi.UseShellExecute = false;
                    psi.CreateNoWindow = true;
                    Process.Start(psi);

 

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

Sign in to reply to this post.