Skip to main content Skip to footer

Can ActiveReportsJS be Used in Node.js?

Although ActiveReportsJS is almost always used completely in the front-end of applications, it is possible to use within a Node.js project with server-side code. Below is the link to our GitHub page where you can see our server-side sample: 

https://github.com/GrapeCity/activereportsjs-samples

After you download and unzip the repository on your machine, you can open the arjs-server-mode folder in Visual Studio Code to get started. From there, you'll have to run npm install (or yarn if you're using yarn) in the terminal to install all of the npm packages. 

The application works by running a headless browser in Node.js and exporting a pre-made report file to PDF. After you run the project with npm start or with node index.js, the code within the index.js file will run and a PDF will display in your project's base directory. 

If you need more help with this sample, please feel free to open a ticket with our support team. 

Christian Wirt