21 |
22 | ## ℹ️️ Description
23 |
24 | This library was created to give users the ability to display SQL Server Reporting Services (SSRS) reports within Angular applications. The report viewer simplifies the process of sending commands to your report server through URL requests. For example, you can pass parameter values and modify the controls that the user has access to inside the report viewer through your own Angular components. You can read more about using URL access of the report server [here](https://docs.microsoft.com/en-us/sql/reporting-services/url-access-ssrs).
25 |
26 | ## 🔧 Installation
27 |
28 | Install ngx-ssrs-reportviewer using npm:
29 |
30 | ```bash
31 | npm install ngx-ssrs-reportviewer --save
32 | ```
33 |
34 | or
35 |
36 | ```bash
37 | ng add ngx-ssrs-reportviewer
38 | ```
39 |
40 | ## 👨🏻🏫 Usage
41 |
42 | 1. Add ReportViewerModule into your AppModule class. An example `app.module.ts` would look like this:
43 |
44 | ```javascript
45 |
46 | import { BrowserModule } from '@angular/platform-browser';
47 | import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
48 | import { AppComponent } from './app.component';
49 | import { ReportViewerModule } from 'ngx-ssrs-reportviewer';
50 |
51 | @NgModule({
52 | declarations: [
53 | AppComponent
54 | ],
55 | imports: [
56 | BrowserModule,
57 | ReportViewerModule
58 | ],
59 | providers: [],
60 | bootstrap: [AppComponent],,
61 | schemas: [CUSTOM_ELEMENTS_SCHEMA]
62 | })
63 | export class AppModule { }
64 |
65 | ```
66 |
67 | 2. Add the report viewer to your components html template. An example `app.component.html` with all the report viewer attributes could look as follows:
68 |
69 | ```html
70 |
71 |
80 |
81 |
82 | ```
83 | NOTE: Many of these attributes are optional. I will cover which attributes are required below and what each one does.
84 |
85 | 4. Now inside your component the report viewer attributes specified in the ssrs-reportviewer component can be initialized. Initialization of all the attributes inside `app.component.ts` would look like this:
86 |
87 | ```typescript
88 | import { Component } from '@angular/core';
89 |
90 | @Component({
91 | selector: 'my-app',
92 | templateUrl: './app.component.html',
93 | styleUrls: ['./app.component.css']
94 | })
95 | export class AppComponent {
96 |
97 | reportServer: string = 'http://myreportserver/reportserver';
98 | reportUrl: string = 'MyReports/SampleReport';
99 | showParameters: string = "true";
100 | parameters: any = {
101 | "SampleStringParameter": null,
102 | "SampleBooleanParameter" : false,
103 | "SampleDateTimeParameter" : "11/1/2020",
104 | "SampleIntParameter" : 1,
105 | "SampleFloatParameter" : "123.1234",
106 | "SampleMultipleStringParameter": ["Parameter1", "Parameter2"]
107 | };
108 | language: string = "en-us";
109 | width: number = 100;
110 | height: number = 100;
111 | toolbar: string = "true";
112 | }
113 | ```
114 |
115 | ## 📝 Attributes
116 |
117 | | Name | Description | Options | Required |
118 | | ------------- |-------------| -----:|-----:|
119 | | reportserver | The *rswebserviceurl* of your report server. The default of most configurations looks like http://myreportserver/reportserver | N/A | Yes |
120 | | reporturl | The *pathinfo* of your report. This is the relative name of the report in your report server. | N/A | Yes |
121 | | showparameters | Controls the display of parameters. | true, false, collapsed | No |
122 | | toolbar | Controls the display of the report viewer toolbar. | true, false | No |
123 | | parameters | The report parameters you are passing to the report. | N/A | No |
124 | | language | The lanuage of culture-sensitive report parameters such as dates, times or currency. | [Lanuage Codes](https://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx) | No |
125 | | width | The width of the viewer relative to its container. Default is 100. | 1-100 | No |
126 | | height | The height of the viewer relative to its container. Default is 100. | 1-100 | No |
127 |
128 | ## 🔢 Examples
129 | Here are some simple examples of the report viewer.
130 |
131 | showparameters set to "true"
132 |
133 |
134 | showparameters set to "false"
135 |
136 |
137 | ## ❗ Limitations
138 | There are some limitations with the report viewer component that should be noted.
139 |
140 | 1. Authentication.
141 | Depending on the authentication you use in your application you may run into problems with permissions. SQL Server Reporting Services uses Windows Authentication to determine access to the reports. If you are working in a .NET/.NET Core environment you can enable Windows Authentication in your app and the users credentials will be passed to the report server. You could also configure your application to use Impersonation to pass the necessary credentials to your report. How you handle these limitations will depend on your own environment. Currently you cannot securely pass credentials to the report server with URL access.
142 |
143 | 2. Preventing Mixed Content
144 | The report viewer uses iframes so if your reportserver is HTTP and you are trying to render it in an HTTPS application you will run into issues.
145 |
146 |
147 | ## 🐞 Bugs
148 | If you find this package helpful throw a star my way and please report any bugs you encounter.
--------------------------------------------------------------------------------
/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "version": 1,
4 | "newProjectRoot": "projects",
5 | "projects": {
6 | "ngx-ssrs-reportviewer-workspace": {
7 | "projectType": "application",
8 | "schematics": {
9 | "@schematics/angular:component": {
10 | "style": "scss"
11 | }
12 | },
13 | "root": "",
14 | "sourceRoot": "src",
15 | "prefix": "app",
16 | "architect": {
17 | "build": {
18 | "builder": "@angular-devkit/build-angular:browser",
19 | "options": {
20 | "outputPath": "dist/ngx-ssrs-reportviewer-workspace",
21 | "index": "src/index.html",
22 | "main": "src/main.ts",
23 | "polyfills": "src/polyfills.ts",
24 | "tsConfig": "tsconfig.app.json",
25 | "aot": true,
26 | "assets": [
27 | "src/favicon.ico",
28 | "src/assets"
29 | ],
30 | "styles": [
31 | "src/styles.scss"
32 | ],
33 | "scripts": []
34 | },
35 | "configurations": {
36 | "production": {
37 | "fileReplacements": [
38 | {
39 | "replace": "src/environments/environment.ts",
40 | "with": "src/environments/environment.prod.ts"
41 | }
42 | ],
43 | "optimization": true,
44 | "outputHashing": "all",
45 | "sourceMap": false,
46 | "extractCss": true,
47 | "namedChunks": false,
48 | "extractLicenses": true,
49 | "vendorChunk": false,
50 | "buildOptimizer": true,
51 | "budgets": [
52 | {
53 | "type": "initial",
54 | "maximumWarning": "2mb",
55 | "maximumError": "5mb"
56 | },
57 | {
58 | "type": "anyComponentStyle",
59 | "maximumWarning": "6kb",
60 | "maximumError": "10kb"
61 | }
62 | ]
63 | }
64 | }
65 | },
66 | "serve": {
67 | "builder": "@angular-devkit/build-angular:dev-server",
68 | "options": {
69 | "browserTarget": "ngx-ssrs-reportviewer-workspace:build"
70 | },
71 | "configurations": {
72 | "production": {
73 | "browserTarget": "ngx-ssrs-reportviewer-workspace:build:production"
74 | }
75 | }
76 | },
77 | "extract-i18n": {
78 | "builder": "@angular-devkit/build-angular:extract-i18n",
79 | "options": {
80 | "browserTarget": "ngx-ssrs-reportviewer-workspace:build"
81 | }
82 | },
83 | "test": {
84 | "builder": "@angular-devkit/build-angular:karma",
85 | "options": {
86 | "main": "src/test.ts",
87 | "polyfills": "src/polyfills.ts",
88 | "tsConfig": "tsconfig.spec.json",
89 | "karmaConfig": "karma.conf.js",
90 | "assets": [
91 | "src/favicon.ico",
92 | "src/assets"
93 | ],
94 | "styles": [
95 | "src/styles.scss"
96 | ],
97 | "scripts": []
98 | }
99 | },
100 | "lint": {
101 | "builder": "@angular-devkit/build-angular:tslint",
102 | "options": {
103 | "tsConfig": [
104 | "tsconfig.app.json",
105 | "tsconfig.spec.json",
106 | "e2e/tsconfig.json"
107 | ],
108 | "exclude": [
109 | "**/node_modules/**"
110 | ]
111 | }
112 | },
113 | "e2e": {
114 | "builder": "@angular-devkit/build-angular:protractor",
115 | "options": {
116 | "protractorConfig": "e2e/protractor.conf.js",
117 | "devServerTarget": "ngx-ssrs-reportviewer-workspace:serve"
118 | },
119 | "configurations": {
120 | "production": {
121 | "devServerTarget": "ngx-ssrs-reportviewer-workspace:serve:production"
122 | }
123 | }
124 | }
125 | }
126 | },
127 | "reportviewer": {
128 | "projectType": "library",
129 | "root": "projects/reportviewer",
130 | "sourceRoot": "projects/reportviewer/src",
131 | "prefix": "lib",
132 | "architect": {
133 | "build": {
134 | "builder": "@angular-devkit/build-ng-packagr:build",
135 | "options": {
136 | "tsConfig": "projects/reportviewer/tsconfig.lib.json",
137 | "project": "projects/reportviewer/ng-package.json"
138 | },
139 | "configurations": {
140 | "production": {
141 | "tsConfig": "projects/reportviewer/tsconfig.lib.prod.json"
142 | }
143 | }
144 | },
145 | "test": {
146 | "builder": "@angular-devkit/build-angular:karma",
147 | "options": {
148 | "main": "projects/reportviewer/src/test.ts",
149 | "tsConfig": "projects/reportviewer/tsconfig.spec.json",
150 | "karmaConfig": "projects/reportviewer/karma.conf.js"
151 | }
152 | },
153 | "lint": {
154 | "builder": "@angular-devkit/build-angular:tslint",
155 | "options": {
156 | "tsConfig": [
157 | "projects/reportviewer/tsconfig.lib.json",
158 | "projects/reportviewer/tsconfig.spec.json"
159 | ],
160 | "exclude": [
161 | "**/node_modules/**"
162 | ]
163 | }
164 | }
165 | }
166 | }},
167 | "defaultProject": "ngx-ssrs-reportviewer-workspace"
168 | }
169 |
--------------------------------------------------------------------------------
/e2e/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | // Protractor configuration file, see link for more information
3 | // https://github.com/angular/protractor/blob/master/lib/config.ts
4 |
5 | const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
6 |
7 | /**
8 | * @type { import("protractor").Config }
9 | */
10 | exports.config = {
11 | allScriptsTimeout: 11000,
12 | specs: [
13 | './src/**/*.e2e-spec.ts'
14 | ],
15 | capabilities: {
16 | browserName: 'chrome'
17 | },
18 | directConnect: true,
19 | baseUrl: 'http://localhost:4200/',
20 | framework: 'jasmine',
21 | jasmineNodeOpts: {
22 | showColors: true,
23 | defaultTimeoutInterval: 30000,
24 | print: function() {}
25 | },
26 | onPrepare() {
27 | require('ts-node').register({
28 | project: require('path').join(__dirname, './tsconfig.json')
29 | });
30 | jasmine.getEnv().addReporter(new SpecReporter({
31 | spec: {
32 | displayStacktrace: StacktraceOption.PRETTY
33 | }
34 | }));
35 | }
36 | };
--------------------------------------------------------------------------------
/e2e/src/app.e2e-spec.ts:
--------------------------------------------------------------------------------
1 | import { AppPage } from './app.po';
2 | import { browser, logging } from 'protractor';
3 |
4 | describe('workspace-project App', () => {
5 | let page: AppPage;
6 |
7 | beforeEach(() => {
8 | page = new AppPage();
9 | });
10 |
11 | it('should display welcome message', () => {
12 | page.navigateTo();
13 | expect(page.getTitleText()).toEqual('ngx-ssrs-reportviewer-workspace app is running!');
14 | });
15 |
16 | afterEach(async () => {
17 | // Assert that there are no errors emitted from the browser
18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19 | expect(logs).not.toContain(jasmine.objectContaining({
20 | level: logging.Level.SEVERE,
21 | } as logging.Entry));
22 | });
23 | });
24 |
--------------------------------------------------------------------------------
/e2e/src/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo(): Promise {
5 | return browser.get(browser.baseUrl) as Promise;
6 | }
7 |
8 | getTitleText(): Promise {
9 | return element(by.css('app-root .content span')).getText() as Promise;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/e2e/tsconfig.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "../tsconfig.base.json",
4 | "compilerOptions": {
5 | "outDir": "../out-tsc/e2e",
6 | "module": "commonjs",
7 | "target": "es2018",
8 | "types": [
9 | "jasmine",
10 | "jasminewd2",
11 | "node"
12 | ]
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/images/ssrslogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tycomo/ngx-ssrs-reportviewer/c61f56c4a589def04c60d02d2b5c73e35105a5bf/images/ssrslogo.png
--------------------------------------------------------------------------------
/images/toolbar_false.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tycomo/ngx-ssrs-reportviewer/c61f56c4a589def04c60d02d2b5c73e35105a5bf/images/toolbar_false.PNG
--------------------------------------------------------------------------------
/images/toolbar_true.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tycomo/ngx-ssrs-reportviewer/c61f56c4a589def04c60d02d2b5c73e35105a5bf/images/toolbar_true.PNG
--------------------------------------------------------------------------------
/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular-devkit/build-angular/plugins/karma')
14 | ],
15 | client: {
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | dir: require('path').join(__dirname, './coverage/ngx-ssrs-reportviewer-workspace'),
20 | reports: ['html', 'lcovonly', 'text-summary'],
21 | fixWebpackSourcePaths: true
22 | },
23 | reporters: ['progress', 'kjhtml'],
24 | port: 9876,
25 | colors: true,
26 | logLevel: config.LOG_INFO,
27 | autoWatch: true,
28 | browsers: ['Chrome'],
29 | singleRun: false,
30 | restartOnFileChange: true
31 | });
32 | };
33 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ngx-ssrs-reportviewer-workspace",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "ng": "ng",
6 | "start": "ng serve",
7 | "build": "ng build",
8 | "test": "ng test",
9 | "lint": "ng lint",
10 | "lib:build": "ng run reportviewer:build",
11 | "lib:build:prod": "ng run reportviewer:build:production",
12 | "lib:test": "ng run reportviewer:test",
13 | "lib:lint": "ng run reportviewer:lint",
14 | "schematics:build": "tsc -p projects/schematics/tsconfig.json",
15 | "schematics:copy": "npm run schematics:build && webpack",
16 | "build-package": "npm run lib:build:prod && npm run schematics:copy"
17 | },
18 | "private": true,
19 | "dependencies": {
20 | "@angular/animations": "~10.0.6",
21 | "@angular/common": "~10.0.6",
22 | "@angular/compiler": "~10.0.6",
23 | "@angular/core": "~10.0.6",
24 | "@angular/forms": "~10.0.6",
25 | "@angular/platform-browser": "~10.0.6",
26 | "@angular/platform-browser-dynamic": "~10.0.6",
27 | "@angular/router": "~10.0.6",
28 | "bootstrap": "^4.5.2",
29 | "rxjs": "~6.5.5",
30 | "schematics-utilities": "^2.0.2",
31 | "tslib": "^2.0.0",
32 | "zone.js": "~0.10.3"
33 | },
34 | "devDependencies": {
35 | "@angular-devkit/build-angular": "~0.1000.5",
36 | "@angular-devkit/build-ng-packagr": "~0.1000.5",
37 | "@angular/cli": "~10.0.5",
38 | "@angular/compiler-cli": "~10.0.6",
39 | "@types/jasmine": "~3.5.0",
40 | "@types/jasminewd2": "~2.0.3",
41 | "@types/node": "^12.11.1",
42 | "codelyzer": "^6.0.0",
43 | "jasmine-core": "~3.5.0",
44 | "jasmine-spec-reporter": "~5.0.0",
45 | "karma": "~5.0.0",
46 | "karma-chrome-launcher": "~3.1.0",
47 | "karma-coverage-istanbul-reporter": "~3.0.2",
48 | "karma-jasmine": "~3.3.0",
49 | "karma-jasmine-html-reporter": "^1.5.0",
50 | "ng-packagr": "^10.0.0",
51 | "protractor": "~7.0.0",
52 | "ts-node": "~8.3.0",
53 | "tslint": "~6.1.0",
54 | "typescript": "~3.9.5",
55 | "webpack": "^4.44.1",
56 | "webpack-cli": "^3.3.12",
57 | "webpack-node-externals": "^2.5.0"
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/projects/reportviewer/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Angular SQL Server Report Viewer (ngx-ssrs-reportviewer)
21 |
22 | ## ℹ️️ Description
23 |
24 | This library was created to give users the ability to display SQL Server Reporting Services (SSRS) reports within Angular applications. The report viewer simplifies the process of sending commands to your report server through URL requests. For example, you can pass parameter values and modify the controls that the user has access to inside the report viewer through your own Angular components. You can read more about using URL access of the report server [here](https://docs.microsoft.com/en-us/sql/reporting-services/url-access-ssrs).
25 |
26 | ## 🔧 Installation
27 |
28 | Install ngx-ssrs-reportviewer using npm:
29 |
30 | ```bash
31 | npm install ngx-ssrs-reportviewer --save
32 | ```
33 |
34 | or
35 |
36 | ```bash
37 | ng add ngx-ssrs-reportviewer
38 | ```
39 |
40 | ## 👨🏻🏫 Usage
41 |
42 | 1. Add ReportViewerModule into your AppModule class. An example `app.module.ts` would look like this:
43 |
44 | ```javascript
45 |
46 | import { BrowserModule } from '@angular/platform-browser';
47 | import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
48 | import { AppComponent } from './app.component';
49 | import { ReportViewerModule } from 'ngx-ssrs-reportviewer';
50 |
51 | @NgModule({
52 | declarations: [
53 | AppComponent
54 | ],
55 | imports: [
56 | BrowserModule,
57 | ReportViewerModule
58 | ],
59 | providers: [],
60 | bootstrap: [AppComponent],,
61 | schemas: [CUSTOM_ELEMENTS_SCHEMA]
62 | })
63 | export class AppModule { }
64 |
65 | ```
66 |
67 | 2. Add the report viewer to your components html template. An example `app.component.html` with all the report viewer attributes could look as follows:
68 |
69 | ```html
70 |
71 |
80 |
81 |
82 | ```
83 | NOTE: Many of these attributes are optional. I will cover which attributes are required below and what each one does.
84 |
85 | 4. Now inside your component the report viewer attributes specified in the ssrs-reportviewer component can be initialized. Initialization of all the attributes inside `app.component.ts` would look like this:
86 |
87 | ```typescript
88 | import { Component } from '@angular/core';
89 |
90 | @Component({
91 | selector: 'my-app',
92 | templateUrl: './app.component.html',
93 | styleUrls: ['./app.component.css']
94 | })
95 | export class AppComponent {
96 |
97 | reportServer: string = 'http://myreportserver/reportserver';
98 | reportUrl: string = 'MyReports/SampleReport';
99 | showParameters: string = "true";
100 | parameters: any = {
101 | "SampleStringParameter": null,
102 | "SampleBooleanParameter" : false,
103 | "SampleDateTimeParameter" : "11/1/2020",
104 | "SampleIntParameter" : 1,
105 | "SampleFloatParameter" : "123.1234",
106 | "SampleMultipleStringParameter": ["Parameter1", "Parameter2"]
107 | };
108 | language: string = "en-us";
109 | width: number = 100;
110 | height: number = 100;
111 | toolbar: string = "true";
112 | }
113 | ```
114 |
115 | ## 📝 Attributes
116 |
117 | | Name | Description | Options | Required |
118 | | ------------- |-------------| -----:|-----:|
119 | | reportserver | The *rswebserviceurl* of your report server. The default of most configurations looks like http://myreportserver/reportserver | N/A | Yes |
120 | | reporturl | The *pathinfo* of your report. This is the relative name of the report in your report server. | N/A | Yes |
121 | | showparameters | Controls the display of parameters. | true, false, collapsed | No |
122 | | toolbar | Controls the display of the report viewer toolbar. | true, false | No |
123 | | parameters | The report parameters you are passing to the report. | N/A | No |
124 | | language | The lanuage of culture-sensitive report parameters such as dates, times or currency. | [Lanuage Codes](https://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx) | No |
125 | | width | The width of the viewer relative to its container. Default is 100. | 1-100 | No |
126 | | height | The height of the viewer relative to its container. Default is 100. | 1-100 | No |
127 |
128 | ## 🔢 Examples
129 | Here are some simple examples of the report viewer.
130 |
131 | showparameters set to "true"
132 |
133 |
134 | showparameters set to "false"
135 |
136 |
137 | ## ❗ Limitations
138 | There are some limitations with the report viewer component that should be noted.
139 |
140 | 1. Authentication.
141 | Depending on the authentication you use in your application you may run into problems with permissions. SQL Server Reporting Services uses Windows Authentication to determine access to the reports. If you are working in a .NET/.NET Core environment you can enable Windows Authentication in your app and the users credentials will be passed to the report server. You could also configure your application to use Impersonation to pass the necessary credentials to your report. How you handle these limitations will depend on your own environment. Currently you cannot securely pass credentials to the report server with URL access.
142 |
143 | 2. Preventing Mixed Content
144 | The report viewer uses iframes so if your reportserver is HTTP and you are trying to render it in an HTTPS application you will run into issues.
145 |
146 |
147 | ## 🐞 Bugs
148 | If you find this package helpful throw a star my way and please report any bugs you encounter.
--------------------------------------------------------------------------------
/projects/reportviewer/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular-devkit/build-angular/plugins/karma')
14 | ],
15 | client: {
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | dir: require('path').join(__dirname, '../../coverage/reportviewer'),
20 | reports: ['html', 'lcovonly', 'text-summary'],
21 | fixWebpackSourcePaths: true
22 | },
23 | reporters: ['progress', 'kjhtml'],
24 | port: 9876,
25 | colors: true,
26 | logLevel: config.LOG_INFO,
27 | autoWatch: true,
28 | browsers: ['Chrome'],
29 | singleRun: false,
30 | restartOnFileChange: true
31 | });
32 | };
33 |
--------------------------------------------------------------------------------
/projects/reportviewer/ng-package.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3 | "dest": "../../dist/reportviewer",
4 | "lib": {
5 | "entryFile": "src/public-api.ts"
6 | }
7 | }
--------------------------------------------------------------------------------
/projects/reportviewer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ngx-ssrs-reportviewer",
3 | "version": "3.1.1",
4 | "author": "Tyler Como",
5 | "description": "Angular component for rendering SSRS reports",
6 | "homepage": "https://github.com/tycomo/ngx-ssrs-reportviewer",
7 | "license": "MIT",
8 | "keywords": [
9 | "Angular",
10 | "Package",
11 | "SSRS",
12 | "SQL Reporting Services",
13 | "SQL Server Reporting Services",
14 | "Reportviewer"
15 | ],
16 | "repository": {
17 | "type": "git",
18 | "url": "https://github.com/tycomo/ngx-ssrs-reportviewer"
19 | },
20 | "schematics": "./schematics/collection.json",
21 | "peerDependencies": {
22 | "@angular/common": "^10.0.6",
23 | "@angular/core": "^10.0.6"
24 | },
25 | "dependencies": {
26 | "tslib": "^2.0.0"
27 | }
28 | }
--------------------------------------------------------------------------------
/projects/reportviewer/src/lib/reportviewer.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2 | import {} from 'jasmine';
3 | import { ReportViewerComponent } from './reportviewer.component';
4 |
5 | describe('ReportViewerComponent', () => {
6 | let component: ReportViewerComponent;
7 | let fixture: ComponentFixture;
8 |
9 | beforeEach(async(() => {
10 | TestBed.configureTestingModule({
11 | declarations: [ ReportViewerComponent ]
12 | })
13 | .compileComponents();
14 | }));
15 |
16 | beforeEach(() => {
17 | fixture = TestBed.createComponent(ReportViewerComponent);
18 | component = fixture.componentInstance;
19 | fixture.detectChanges();
20 | });
21 |
22 | it('should create', () => {
23 | expect(component).toBeTruthy();
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/projects/reportviewer/src/lib/reportviewer.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnChanges, Input, Output, EventEmitter, SimpleChanges, ViewEncapsulation } from '@angular/core';
2 | import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3 |
4 | @Component({
5 | selector: 'ssrs-reportviewer',
6 | template: `
7 |