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

Question

Question

vb.net winforms project

SDK
asked on November 1, 2016

I am building a visual studio vb.net winforms application.

Is it possible to query and display documents in a grid on a form and then open a document from a link in the grid?

0 0

Replies

replied on November 1, 2016

That is definitely possible with the SDK. To query for documents use the RepositoryAccess library. To open the documents with the desktop client you would use Client Automation Tools or the command line interface. You can find sample code for opening documents in this presentation.  To open the documents in Web Access, see this help page for information on constructing urls.

0 0
replied on November 2, 2016

Is it possible to open a document outside of the laserfiche client?

 

I would like to click on the document in my application and open it without opening laserfiche.

0 0
replied on November 2, 2016

Yes, you can use the SDK to download the document content to a temporary file and open it in the native application. If the document is an edoc (office document/pdf/etc) you can just export the edoc file. If the document is a Laserfiche document you can export the pages as a PDF or multipage tiff.

0 0
replied on November 2, 2016

Do you have any sample code for doing this?

0 0
replied on November 2, 2016

There is sample code for exporting documents in the SDK, in Samples\CSharp\DocumentExporter. It uses Laserfiche.DocumentServices.DocumentExporter to export pages as JPG and PDF. To export the edoc portion of a document, call DocumentExporter.ExportElecDoc.

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

Sign in to reply to this post.