#1
Posted
:
Thursday, July 2, 2015 11:15:53 AM(UTC)
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.
#2
Posted
:
Monday, July 6, 2015 5:55:46 AM(UTC)
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 LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
#3
Posted
:
Tuesday, July 14, 2015 2:13:40 AM(UTC)
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:45:34 AM(UTC)
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 LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
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.