Skip to content

shobeiry/ngx-stimulsoft

 
 

Repository files navigation

NGX Stimulsoft

npm version GitHub issues GitHub stars License: MIT

Angular integration for Stimulsoft Reports viewer and designer components.


📦 Installation

Install the package via npm:

npm install ngx-stimulsoft --save

Usage

Import the Module

To use ngx-stimulsoft in your Angular application, provide the Stimulsoft configuration in the root NgModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { provideStimulsoft, IStimulsoftConfig } from 'ngx-stimulsoft';

const stimulsoftConfig: Partial<IStimulsoftConfig> = {
  baseUrl: '/content/reports/',
  viewerJsUrl: '/content/stimulsoft/stimulsoft.viewer.js',
  reportsJsUrl: '/content/stimulsoft/stimulsoft.reports.js',
  designerJsUrl: '/content/stimulsoft/stimulsoft.designer.js',
  designerCssUrl: '/content/stimulsoft/stimulsoft.designer.office2013.darkgrayblue.css',
  viewerCssUrl: '/content/stimulsoft/stimulsoft.viewer.office2013.darkgrayblue.css',
  licenseKey: '{{licenseKey}}', // Replace with your license key
};

@NgModule({
  imports: [BrowserModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent],
  providers: [provideStimulsoft(stimulsoftConfig)],
})
export class AppModule {}

Using with a Shared Module

If you're using a SharedModule across multiple feature modules, you can export the NgxStimulsoftModule to avoid importing it repeatedly:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgxStimulsoftModule } from 'ngx-stimulsoft';

@NgModule({
  imports: [CommonModule],
  exports: [CommonModule, NgxStimulsoftModule],
})
export class SharedModule {}

License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • Other 1.0%