This repository contains the source code of the examples of usage Stimulsoft Reports.JS reporting tool in the Node.js applications, using JavaScript report engine. The report generator and examples are fully compatible with Node.js 14 and higher.
There is available a set of examples of using Stimulsoft Reports.JS in Node.js, for each example, there is a full set of necessary files (Roboto-Black.ttf to render the report, the test report file SimpleList.mrt etc.)
-
Adding a Font to the Resource
This example shows how to add a font to the report resources using code. -
Exporting a Report to HTML
This example allows you to download the report, render it and export it to HTML-format. -
Exporting a Report to PDF
This example contains code to render a report to a PDF-document. -
Loading a Report and Rendering it with a JSON Data
This simple example shows the steps to download the report and json-data, its rendering and saving in mdc format. -
Loading a Report and Saving a Rendered Report
This simple example shows the steps to download the report, its rendering and saving in mdc format. -
Loading a Report from the Server-Side
This example shows how to use Node.js server side to work with a report. -
Starting SQL Adapters from the HTTP Server
This example demonstrates the implementation of connections to different databases (MySQL, Firebird, MSSQL and PostgreSQL). Adapters files are in a directory with an example. -
Supply Custom Headers for Json Database
This example illustrates loading of the report that uses JSON database from some web-server and accessible only by suppliing custom HTTP header. -
Using with Express
This example illustrates how to use Stimulsoft Reports.JS in conjunction with the Express framework.
To run the examples, open the required folder with the example and run the following commands in the console:
- use
npm install
to install requred modules; - use
node index
to run sample.
Since pure JavaScript does not have built-in methods for working with remote databases, this functionality is implemented using server-side code. Therefore, Stimulsoft Reports.JS product contains server data adapters implemented using PHP, Node.js, ASP.NET, Java, .NET Core technologies.
Many examples for other platforms and technologies are collected in separate repositories:
Stimulsoft Reports.JS offers a wide range of reporting components created in pure JavaScript. The report builder can be easily integrated into any JavaScript app, works in any modern browser – Chrome, Firefox, Safari, Edge, and supports Node.js. The product contains everything you need to create, edit, build, view and export reports of high complexity.