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

Question

Question

SDK Read-Only Laserfiche Client

asked on September 5

Using the .Net SDK, is there a way to create a read only client that would display a file from Laserfiche within the application without opening Laserfiche or exporting the file to a PDF locally first?

 

 

0 0

Answer

SELECTED ANSWER
replied on September 5

What type of client application are you going to build?  Windows Forms application? Web Application? 

The basic steps would be to create a connection to the repository, login, get a reference to the document (or attachment), and then export it out to a stream. 

Depending on which type of client application you are developing you just need to do something with that stream; ie save it to a picturebox or image control or stream it to a web browser.

There should be lots of code examples on the Answers site for doing much of the above.

0 0

Replies

replied on September 5

It's certainly possible. However, by the time you built a solution that did everything you need, you'd probably be better served just using WebLink.

4 0
replied on September 5

Chance,

Yes, you can use the SDK to build just about any type of integration that you can think of.  However, regardless of the type of application you build to integrate with Laserfiche you will still need to provide Laserfiche user credentials to access the repository.  The permissions assigned to that Laserfiche user account will determine whether or not the connection is 'read-only'.

What type of client were you thinking of building?  As Devin mentions; if the client does much more than just display the document (or attachment) then you will spend a lot of time coding to get the same functionality that already exists in the Laserfiche suite.

0 0
replied on September 5

Thanks for the reply, we only need to be able to display the document.

Is there some documentation on how to do this you could send me to?  So far I've only seen information on exporting to PDF and opening in Laserfiche directly.

 

 

0 0
SELECTED ANSWER
replied on September 5

What type of client application are you going to build?  Windows Forms application? Web Application? 

The basic steps would be to create a connection to the repository, login, get a reference to the document (or attachment), and then export it out to a stream. 

Depending on which type of client application you are developing you just need to do something with that stream; ie save it to a picturebox or image control or stream it to a web browser.

There should be lots of code examples on the Answers site for doing much of the above.

0 0
replied on September 5

The only tricky part of this project is displaying the document without storing it on disk. If it's an image, that's easy enough because of the built-in support for image rendering in .Net. For other file types, you'll need to figure out how to render it and that probably means integrating with other software.

0 0
replied one day ago

Thanks, I ended up just exporting the document to a stream and displaying it in a Telerik RadPdfViewer control.

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

Sign in to reply to this post.