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

Question

Question

SDK - DocImporter.Document not working with LFDocument object

SDK
asked on January 29, 2014

 I am trying to assign DocImporter a document using DocImporter.Document = myDoc where myDoc is a LFDocument object.

 

I keep getting the following message.

 

A valid document object reference must be supplied.

 

According to the documentation this should accept an LFDocument object. Not sure why it is rejecting it.

 

myDoc = (LFDocument)db.GetEntryByID(348395);
DocImporter.Document = myDoc;

 

1 0

Replies

replied on January 29, 2014

Make sure that you're using the DocumentImporter from Document Processor (the COM-based library) and not the one from Document Services (which is .Net).

1 0
replied on January 29, 2014

Ok, I am using DocumentProcessor82.DocumentImporter from the COM libraries.

 

using DocumentProcessor82;

...

DocumentImporter DocImporter = new DocumentImporter();

....


myDoc = (LFDocument)db.GetEntryByID(348395);
DocImporter.Document = myDoc;

 

0 0
replied on January 29, 2014

Assuming that you're also using LFSO 8.2, that should work.  If you're using some other version of LFSO, you'll need to use the matching version of DocumentProcessor (or else it will throw the exception that you're seeing).

1 0
replied on January 29, 2014

Uh oh. I am using Laserfiche Server Objects 8.0. There is no 8.2 with the SDK but this is the same SDK installer that came with DocumentProcessor82.

0 0
replied on May 19, 2016

same problem here what was the solution

0 0
replied on May 19, 2016

The solution was to use matching versions of LFSO and DocumentProcessor and make sure you referenced DocumentImporter from DocumentProcessor not DocumentServices.

0 0
replied on May 19, 2016

How is one able to get the LFSO and DocumentProcessor on the same version?

It's my understanding the SDK ships with RepositoryAccess instead of LFSO and 8.0 is not included in the 9.2 and 10 versions?

 

 

Cheers,

Carl

0 0
replied on May 19, 2016

LFSO 8.0 and higher and DocumentProcessor 8.3 and higher are included. Is there a reason you must use LFSO/DocumentProcessor 8.0?

0 0
replied on May 19, 2016

Dear Miruna we have laserfiche 8.3 and the sdk we have contain only documentprocessor8.2 and lfso8.0 can you provide me with a link to download matching versions.

thanks in advance

Untitled.jpg
Untitled.jpg (8.26 KB)
0 0
replied on May 20, 2016

Where are you looking? Installing the 8.3 SDK puts copies of LFSO80-83 and DocumentProcessor82-83 in <Common Files>\Laserfiche\LFObjects.

1 0
replied on May 20, 2016 Show version history

Looking at the Downloads section for the SDK I just see 10 and 9.2.1. This was only an issue for the CPP integrator course as it is based off an older LFSO.

 

 

Cheers,

Carl

 

 

0 0
replied on May 20, 2016

Sorry, I guess I should try to clarify a couple of things that might help us all get on the same page.

Older versions of the SDK are no longer available to everybody because of 3rd party components distribution restrictions. If you or your customer had an older version, you can request a copy of it from Tech Support.

The newer versions of the SDK are backwards compatible with the older versions of the server (providing you're only using features available in that version of the server, obviously). So you don't need to stick with an older version of the SDK just to support multiple versions of the server, nor do you need to reference multiple versions of LFSO and match your connection to the version of the server you're connecting to.

For example, Workflow 10 uses RA10 and supports servers from version 8.1 and up. Quick Fields 9.0 uses LFSO90 and supports versions of the server from 8.1 to 10.1.

It's recommended that you use the latest available version in order to take advantage of the latest bug fixes and performance enhancements.

1 0
replied on May 22, 2016

thanks for the help Miruna I was looking in the visual studio I didn't check the folder for other dll and for some reason only 2 dll were visible there I added the 8.3 version and all is working now 

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

Sign in to reply to this post.