Reference Guide
Learning DocuVieware / Code samples & examples
In This Topic
    Code samples & examples
    In This Topic

    The goal of these samples is to help you understand how to implement DocuVieware™ in web applications using almost any technology.

    It's all about getting you started, none of these samples have the ambition to be a full-fledged application and, therefore, are only provided for educational purpose.

    All the samples that demonstrates how to integrate DocuVieware™ when it is served by an independent REST service are based on the same project, only the integration part (i.e. how the REST service is called and how the result is rendered) differs.
    In case you use a web technology that is not part of the samples provided, you can take a look at the JavaScript sample. This is the simplest and most direct integration, it should allow you to easily integrate DocuVieware™ in your project whatever the technology used.
     Angular

    Example of DocuVieware™ integration using the Angular framework (also known as Angular2 or Angular 2+) through an independent REST service. This sample is available is different versions depending on which version of Angular you are using.

    For an integration with Angular 2: [Installation Folder]\Samples\ASP.NET\DocuVieware\angular2-rest\
    For an integration with Angular 5 or 6: [Installation Folder]\Samples\ASP.NET\DocuVieware\angular5~6-rest\
    For an integration with Angular 7: [Installation Folder]\Samples\ASP.NET\DocuVieware\angular7-rest\
    Samples for Angular 7 are a bit more advanced than those for previous Angular versions, you will find two different projects, one that is basically an Angular 7 implementation of the Image Clean-up demo available here.
    The other one is a demo showing how you could use DocuVieware™ to adjust the contrast of an image. Both demos are illustrating how to use DocuVieware™ custom actions mechanism in an Angular application.
     AngularJS

    Example of DocuVieware™ integration using the AngularJS framework (also known as Angular 1.x) through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\angularjs-rest\
     ASP.NET Core

    For .NET Core there are two different projects. The first is a .NET Core MVC application targeting the .NET Framework 4.6 (and not .NET Core Framework, it is mandatory since .NET 4.6 is a prerequisite for DocuVieware™).

    [Installation Folder]\Samples\ASP.NET\DocuVieware\aspnetcore-mvc_razor_app\

    The second is a .NET Core project targeting .NET Core 2.0 that integrates DocuVieware™ through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\aspnetcore-rest\
     ASP.NET

    Three different projects are available for ASP.NET, one is an MVC web application, another is a Webform web application and finally the last project shows a DocuVieware™ integration through an independent REST service.

    The ASP.NET MVC and Webform demo applications are much more complete than other demonstrations. They highlight many different aspects of DocuVieware™ and illustrate a number of real-world usecases showing its many possibilities.
    Be sure to take a look at them, it will certainly give you lots of ideas and solutions for your own applications. More information on their content on the dedicated page.
    [Installation Folder]\Samples\ASP.NET\DocuVieware\aspnet-mvc_razor_app\
    [Installation Folder]\Samples\ASP.NET\DocuVieware\aspnet-webform_app\
    [Installation Folder]\Samples\ASP.NET\DocuVieware\aspnet-rest\
     Java

    This sample demonstrates the integration of DocuVieware™ into a Java application through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\java-rest\
     JavaScript (jQuery)

    This sample demonstrates the integration of DocuVieware™ into an HTML page with JavaScript through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\javascript-rest\
     Node.js

    This sample demonstrates how to retrieve a DocuVieware™ control into a Node.js application through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\nodejs-rest\
     PHP

    This sample demonstrates the integration of DocuVieware™ into a PHP script through an independent REST service.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\php-rest\
     SharePoint

    This sample demonstrates the integration of DocuVieware™ into a SharePoint Add-in that will be able to read documents directly into a SharePoint portal.

    [Installation Folder]\Samples\ASP.NET\DocuVieware\sharepoint\
    See Also