Reporting for JavaScript - How to Perform the Document Viewer Integration (with npm or Yarn package managers)
This example demonstrates how to integrate the HTML5 Document Viewer in a JavaScript application based on the server-side model.
This example consists of two parts:
- A server (back-end) ASP.NET Core project that enables cross-domain requests (CORS) (Access-Control-Allow-Origin) and implements a custom web report storage.
- Document Viewer front-end client JavaScript application.
Perform the following steps to run this example:
-
Open the back-end project solution (CS\ServerSide.sln) in Visual Studio and run the project.
-
Navigate to the JS\ClientSide folder which is the client part's root folder.
-
Open the console and run the following command:
-
if you have the npm package manager:
npm install
-
if you have the Yarn package manager:
yarn install
-
-
Host the client-side part ( JS\ClientSide folder ) on the web server. You can add a new website in the Internet Information Services (IIS) Manager.
-
Launch the browser and open the website created in the previous step.
(you will be redirected to DevExpress.com to submit your response)