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

Question

Question

Error reading Laserfiche scanning version

asked on June 24, 2016 Show version history

Hi, a scanning newbie here. I am trying to use ClientAutomation to scan an image into a LF document (see code below). LaunchScanning command throws an exception "Error reading Laserfiche scanning version". Am I missing some runtime setup or something like that ? Or is the client missing any info ?

 

using (DocumentInfo docInfo = new DocumentInfo(_session))
                {
                    docInfo.Create(folderInfo, docName, EntryNameOption.AutoRename);
                    docInfo.SetTemplate("template");
                    docInfo.SetFieldValues(docFields.GetForLF());
                    docInfo.Save();
                    docId = docInfo.Id;

                    //var conn = _session.GetSerializedConnectionString(9d);
                    var scanOptions = new ScanOptions
                    {
                        //ConnectionString = _session.GetSerializedConnectionString(9),
                        ServerName = _repositoryRegistration.ServerName,
                        RepositoryName = _repositoryRegistration.Name,
                        UserName = _user,
                        Password = _pswd,
                        IsDocument = true,
                        EntryId = docInfo.Id,
                        InsertPagesAt = (int)InsertAt.End,
                        ScanMode = ScanMode.Standard,
                        WaitForExit = true,
                        CloseAfterStoring = true
                    };

                    using (var client = new ClientManager())
                    {
                        client.LaunchScanning(scanOptions);
                    }
                }

thanks

R

0 0

Replies

replied on June 24, 2016

Is Scanning installed? If scanning is installed, there is a registry key at HKLM\SOFTWARE\Wow6432Node\Laserfiche\Laserfiche Scanning 8 with a CurrentVersion value (e.g. 10.0) and there will be a corresponding subkey with that version that contains an InstallPath value with the path to Scanning.

0 0
replied on June 24, 2016

Thanks for the clues. Under HKLM\SOFTWARE\Wow6432Node, I don't have a Laserfiche entry. I haven't installed LF Client on the workstation at all - I just have the LF SDK runtime in place. I was kind of hoping that I could use the LF SDK as - what I guess basically amounts to - a TWAIN wrapper where the ScanOptions class (plus maybe some other setup "somewhere else") would supply the values a user normally selects in a scanner dialog (plus LF specific values like LF server connection), and the LaunchScanning just acquires data from the physical scanner, without further UI.

Do I get it correctly then, that installing the LF Client (including Scanning) is the only way to go here ? Or is there a way to use the LF SDK TWAIN somehow more directly ?

thanks again

0 0
replied on June 24, 2016

You need to install Scanning, ClientAutomation launches scanning to do anything scan related.

0 0
replied on June 24, 2016

Sounds clear - thanks again !

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

Sign in to reply to this post.