ActiveReportsJS, Angular Reporting Component

For developing front-end reporting solutions

The choice of Angular developers worldwide

Create and deploy reports quickly and easily from your Angular applications using ActiveReportsJS, an Angular-based business reporting component.

Why ActiveReportsJS

Why Choose ActiveReportsJS for Angular Apps?

Powerful data binding

ActiveReportsJS supports REST API, OData, and GraphQL bindings, allowing you to quickly and easily connect to JSON-formatted data.

Angular support

ActiveReportsJS supports Angular v17 and higher. Develop web reports more efficiently using the popular JavaScript framework.

No server dependency

You can integrate the ActiveReportsJS reporting engine into your frontend applications using NPM packages, CDN hosting, or app-hosted JavaScript code with no server-side dependencies.

Client-side export and printing

Quickly generate WYSIWYG reports on the client side and export them to PDF, HTML, and CSV formats. This allows end users to print complete JavaScript reports.

Support for various report types

You can create reports in a format that suits your needs, such as continuous page layout, fixed page layout, etc.

Interactive JS report design

Drilldown, drillthrough, interactive sorting, and bookmarking features allow you to interact and provide more specific information to your end users.


Quick Start

Getting Started with ActiveReportsJS in Angular 🚀

Creating reports using the ActiveReportsJS designer

1. After downloading the ActiveReportsJS file, install and run the designer program.

* The designer program installation file is located in the designer folder of the downloaded file.

2. Create the report you want using the designer.

After adding the data source and designing the report, save the generated report as "report.rdlx-json" (you can change the file name to whatever you like).


Place the saved report in the public folder of your Angular app.

Adding the ActiveReportsJS Viewer to an Angular Application

* The guide below uses Angular v20.

1. Go to the Angular app folder and install the ActiveReportsJS library.

npm install @mescius/activereportsjs-angular

2. Add a css file to apply ActiveReportsJS styles.

Open the style.css file of the Angular app you want to work on, and add the ActiveReportsJS CSS file at the bottom.

Please check the sample below for the exact location of the code.

@import "@mescius/activereportsjs/styles/ar-js-ui.css";

@import "@mescius/activereportsjs/styles/ar-js-viewer.css";

3. Add the ActiveReportsJS Angular module and report viewer to your application.

1) Open the src/app/app-module.ts file and replace its contents with the following code.

import { NgModule, provideBrowserGlobalErrorListeners } from '@angular/core' ;

import { BrowserModule } from '@angular/platform-browser' ;

import { ActiveReportsModule } from '@mescius/activereportsjs-angular' ;

import { AppRoutingModule } from './app-routing-module' ;

import { App } from './app' ;@NgModule({

  declarations: [

    App

  ],

  imports: [

    BrowserModule,

AppRoutingModule,

    ActiveReportsModule

  ],

  providers: [

provideBrowserGlobalErrorListeners()

  ],

  bootstrap: [App]

})

export class AppModule { }

2) Open the src/app/app.ts file and specify the component template as shown in the code below.

@Component({

  selector : 'app-root' ,

  template :

    '

' ,

standalone : false ,

  styleUrl : './app.css' ,

})

3) The Init event handler inside src/app/app.ts set above is set to open the generated report "report.rdlx-json".

* Please set the report name dynamically according to the previously created file.

export class AppComponent {

  @ViewChild(ViewerComponent, { static: false }) reportViewer! : ViewerComponent ;

onViewerInit() {

    this.reportViewer.open( 'report.rdlx-json' );

  }

}

4. Add styles to the viewer-host element.

Open the src/app/app.css file and add the CSS styles below.

#viewer-host {

 width: 100%;

 height: 100vh;

}

Please check the sample below for the full code.

5. Run the Angular app and check the results.

Run it using the npm start or yarn start, ng serve command.

npm start

Learn more about CodeSandbox

For Angular developers

Recommended Tutorial for Beginners to ActiveReportsJS

View more articles

ActiveReportsJS Starter Template

Jump-start your development with customizable samples and templates.

Here are a variety of templates and samples utilizing ActiveReportsJS. You can view actual demos, download them, and customize them for your own use.

  • Inventory Investigation Report

    This is a sample inventory report, a document used to determine the current inventory status of products or materials held by a company. It records information on inventory status by item. Download the .rdlx-json file.

    View Demo
    See more details
  • Transaction statement

    This is a sample transaction statement, a document that records transaction details between suppliers and business partners, including the items transacted, quantity, and unit price. Download the .rdlx-json file.

    View Demo
    See more details
  • High-speed ferry mobile e-ticket

    This is a sample high-speed vessel mobile e-ticket, designed to allow customers who purchased tickets using mobile e-tickets and conveniently check high-speed vessel-related information on their mobile devices. Download the .rdlx-json file.

    View Demo
    See more details
  • High-speed ship e-ticket

    This is a sample high-speed vessel e-ticket (e-ticket) containing customer information and high-speed vessel-related details for purchasing a ticket using an e-ticket for high-speed vessels. Download the .rdlx-json file.

    View Demo
    See more details
  • Water quality test report

    This sample water quality test report serves as a document confirming that the water provided is safe and meets regulatory standards, providing consumers with confidence and demonstrating the sanitary management status of public facilities. Download the .rdlx-json file.

    View Demo
    See more details
  • Cosmetics Test Report

    This is a sample cosmetics test report that verifies the safety and reliability of ingredients in cosmetics. Download the .rdlx-json file.

    View Demo
    See more details
  • Electronic Ticket Issuance Confirmation

    This is a sample e-ticket issuance confirmation document issued to passengers who have purchased a ticket, containing boarding information and instructions. Download the .rdlx-json file.

    View Demo
    See more details
  • Graduation certificate

    This is a sample graduation certificate used to officially prove graduation. Download the .rdlx-json file.

    View Demo
    See more details
  • tax invoice

    This is a sample tax invoice required to prove a transaction and calculate value-added tax. Download the .rdlx-json file.

    View Demo
  • estimate

    Here's a sample quotation, including pricing information, terms and conditions, supplier and purchaser information, and more. Download the .rdlx-json file.

    View Demo
  • transcript

    This is a sample transcript that officially certifies a student's academic performance. Download the .rdlx-json file.

    View Demo
  • Customer list

    This sample was created to display customer information using a fixed page layout. Download the .rdlx-json file.

    View Demo
Want more templates & samples?

Visit our ActiveReportsJS online tutorial showcase!