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

Question

Question

LF9 CON VB.NET 2008

SDK
asked on February 21, 2014

In the workflow recognizes TokenReplace vb.net 2008 but not recognized, in order to make a print from a custom button of LF9
 
We want to pass the id of the document 430 with the parameter "% (DocumentID)"

         Dim As New ImageEnable LFImageEnable
         LFImageEnable.LoadLaserFiche (True)
         LFImageEnable.Login ("DemoTest", "PC-240", "admin", "dat")
         `LFImageEnable.PrintDocument (430)


        LFImageEnable.PrintDocument (TokenReplace ("% (DocumentID)")) -> get the error

I'm missing a library reference.

 

0 0

Replies

replied on February 21, 2014

I don't quite understand what you are trying to do. Are you calling PrintDocument from within a Workflow script? TokenReplace is a function for Workflow scripts. Where is %(DocumentID) coming from?

0 0
replied on February 24, 2014

First of all, since you are on LF9 and are making a new application, I would highly recommend using the Client Automation Tools (CAT) rather than ImageEnable.  CAT is the new technology that will be supported in the future.  ImageEnable was degraded with the release of SDK 9 and should only be used in LF 8 client environments.

 

Having stated that, now let's look at the flow of what you want to do.  First we need to start with the understanding that ImageEnable and CAT are tools to interact with the client and are not meant for or supported in a workflow process.  If you are in the LF Client and want to integrate with it, then there are several possible ways to do that but here is the basic flow.

 

  1. Make sure Laserfiche is the window with focus when your app is called.
  2. Check if it is the LF Browser window or the Document Viewer window that called your app.
  3. Get the selected doc ID(s) and then print
  • If it was the LF Browser, use CAT MainWindow methods
  1. GetSelectedEntries
  2. PrintByID
  • If it was the Document Viewer, use CAT DocumentViewer methods
  1. Print

 

 

In the SDK section of the Old Forums, you can find several posts that demo how to find the LF window with focus.  Here are two good ones:

https://support.laserfiche.com/ForumsFrames.aspx?Link=viewtopic.php%3ft%3d19569%26amp

https://support.laserfiche.com/ForumsFrames.aspx?Link=viewtopic.php%3ft%3d19630%26amp

0 0
replied on March 19, 2019

These links are broken.

0 0
replied on March 19, 2019

Yes the links are broken because the old forum site is not longer running.  It was shut down several years ago.

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

Sign in to reply to this post.