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

Question

Question

Link to document opens Client OR WebLink

asked on September 19, 2014

We would like to provide a single link to a document so it opens in Client if it is installed and in WebLink if Client is not installed. Has anyone done this?

We provide links in emails and tables. We're using Client 9.1 and WebLink 8.2 (not Web Access).

0 0

Replies

replied on September 19, 2014

There isn't any out-of-the-box way to do this, and I can't think of a solution that will work in all generality.  But depending on your requirements it may be possible to put something together.  For example, the link could go to a web site that knows if the user has the client installed (based on their user identity, or by having a list of machines on which the client has been installed) and either redirecting to WebLink or returning an LFE shortcut to launch the client.

0 0
replied on September 22, 2014

Brian has the right of this. I haven't heard of anyone doing this, and I can't think of a way to do it either. Usually, when we present a solution that uses both the Laserfiche Client and WebLink, we talk about including one kind of link or the other in notifications and reports. Instead of using the Laserfiche Client, have you considered using Web Access? It might be easier to redirect to the appropriate location that way, since both WebLink and Web Access are web products (though it'd still require some work).

0 0
replied on September 22, 2014

You could do this through VB Scripts

 

Option Explicit
DIM fso    
Set fso = CreateObject("Scripting.FileSystemObject")

If (fso.FileExists("C:\Program Files (x86)\Laserfiche\Client\LF.exe")) Then
  WScript.Echo("File exists!")
  ' Call client here
  WScript.Quit()
Else
  WScript.Echo("File does not exist!")
  ' Call Web Client here
End If

WScript.Quit()

 

0 0
replied on September 22, 2014

Note that this will only work with IE, and probably only in certain security configurations.

0 0
replied on September 22, 2014

Calling the webpage from VBS can be used with any browser, but they would probably need to standardize on one to make the code uniform.
 

0 0
replied on September 22, 2014 Show version history

You can also do the same type of thing with a .bat file

IF EXIST "C:\Program Files (x86)\Laserfiche\Client\LF.exe" (
        Call local LF client
    ) ELSE (
        Call Web Client
    )

 

0 0
replied on September 23, 2014

Thanks for some great ideas. Bert, one of our experts says he might be able to work something out along the lines you suggest.

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

Sign in to reply to this post.