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?
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?
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.
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.
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.
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.
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.
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.
Thanks, I ended up just exporting the document to a stream and displaying it in a Telerik RadPdfViewer control.