[{"id":"26713f3d-fbf1-4c9c-bdbe-31fb188e7096","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"d9f783e1-612a-4fa7-9408-7f1c821a45fc","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"af5bd81a-b6cd-410b-84b4-9de9c51c3a7d","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"60de5e12-02d9-4fd1-8db5-cb82a6bca160","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"6af12f79-8609-4b30-8be3-d617d0cd7a16","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"86b2a642-0ee8-4605-b04d-e7e0ec019e01","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"aa9c6845-a521-49a8-ba61-f85856865f32","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]}]
This page provides a detailed overview of the ActiveReportsJS Angular Report Designer component. You can check the Get Started tutorial for a concise guide for integrating the report designer component into an Angular application.
We distribute the library that contains ActiveReportsJS Angular Report Designer via the @grapecity/activereports-angular npm package. The main @grapecity/activereports package provides the core functionality.
The ActiveReportsJS Angular Report Designer resides in the ActiveReportsModule
Angular module, so it should be imported to the application's root module or other module that is intended to use the report designer, for example:
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { ActiveReportsModule } from "@grapecity/activereports-angular";
import { AppComponent } from "./app.component";
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, ActiveReportsModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
You can integrate the ActiveReportsJS Angular Report Designer component with the gc-activereports-designer
tag. You can use the following input properties.
Property | Type | Description |
---|---|---|
hotkeysEnabled | boolean | indicates whether the save and open hotkeys are enabled |
language | string | sets the language of Designer Component interface. Check the Localization page for more information |
fontSet | "default" | "registered" | "all" | indicates the available font set. Visit the Font Configuration for more information. |
dataSources | array of Data Source Templates | sets the Pre-defined data sources and data sets. |
reportList | array of Report Resource Info items | |
imageList | array of Image Resource Info items | |
onCreate | adds the New Report button in the designer toolbar and sets the corresponding click handler | |
onOpen | adds the Open Report button in the designer toolbar and sets the corresponding click handler | |
onRender | adds the Preview Report button in the designer toolbar and sets the corresponding click handler | |
onSave | adds the Save Report button in the designer toolbar and sets the corresponding click handler | |
onSaveAs | adds the Save As.. button in the designer toolbar and sets the corresponding click handler | |
onOpenFileMenu | adds the "File" menu in the designer toolbar and sets the corresponding click handler | |
report | loads the specified report in the designer | |
customInitTemplates | sets the report item templates for the designer component |
In addition, the parent component can use the getReport
, setReport
, and processCommand
methods of the Designer class instance with ViewChild
injection.
@ViewChild(DesignerComponent, { static: false }) reportDesigner: DesignerComponent;