Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, July 2, 2015 11:20:53 AM(UTC)
marcio.costa

Groups: Registered
Posts: 6


Dear Sirs,

We have developed the Document Viewer in our HTML5 application. Using API REST provided in V19 LEADTOOLS Main Evaluation, the app access many types of documents as images, pdf, office docs, etc.

Now, we are developing the same functionality in a WPF app and we need access documents using the same API REST used in our HTML5 app.

We ask for your support for this implementation because we did not find examples to implement the Document Viewer in WPF consuming API REST.

Thank you and best regards.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, July 6, 2015 6:00:46 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Please read the following help topics that shows how to consume WCF as REST services using WebRequest and WebResponse (C#, VB.Net), the same code should be applicable on WPF also, but we didn't test it using WPF.

https://www.leadtools.com/help/leadtools/v19/dh/to/leadtools.topics.services.datacontracts~dc.topics.howtoconsumeourservicesasrestservices.html

If you face problems using the above tutorial, please send an email to support@leadtools.com and include what you tried so far and what is the problem you are facing.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Tuesday, July 14, 2015 2:18:40 AM(UTC)
marcio.costa

Groups: Registered
Posts: 6


Thanks for reply.

I want to use the REST service Leadtools.Documents.Service where LoadFromUri() method returns a Document type.

I can use this service to ImageViewer WPF component?

Thanks.
 
#4 Posted : Wednesday, July 15, 2015 3:50:34 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


If you modify the service to return a document type, the WPF side will need a way to display that document. This is possible to do with our toolkit because we have libraries to rasterize and display different document types like PDF, MS Word, Excel and PowerPoint files.
The source code of the service itself is installed in this folder:

[LEADTOOLS 19]\Examples\REST\Leadtools.Documents.Service

To load the documents in the WPF application after you've received them from the service, simply use RasterCodecs.Load().
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.131 seconds.