Skip to content

jarb99/reporting-react-integrate-web-document-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for React - How to Integrate the Web Document Viewer in React App

This example shows how to incorporate the Web Document Viewer into a client-side app built with React. The example consists of two parts:

  • A server (back-end) ASP.NET Core application that enables cross-domain requests (CORS) (Access-Control-Allow-Origin) and implements a custom web report storage.

  • A React front-end client application.

Run the Example

Perform the following steps to run this example:

  1. Open the back-end project solution (ServerSideApp/ServerSideApp.sln) in Visual Studio and run the project.

  2. Navigate to the react-document-viewer folder that is the client part's root folder.

  3. Open the console and run the following command:

    npm install

  4. Run the command to compile and start the client part:

    npm start

  5. The client application opens the browser at http://localhost:3000/. It displays the Document Viewer with the TestReport report.

Tip

Make sure that the backend application runs on the port specified in the host setting of the Document Viewer component. For more information, refer to the following help topic: Determine the Host URL.

Document Viewer in JavaScript with React

Files to Review

Documentation

More Examples

About

Sample project with the Web Document Viewer integrated in React App.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.8%
  • HTML 35.1%
  • JavaScript 1.1%