23.2.5 • Published 4 days ago

devexpress-reporting-angular v23.2.5

Weekly downloads
2,090
License
SEE LICENSE IN RE...
Repository
github
Last release
4 days ago

Angular DevExpress Reporting. Report Designer and Report Viewer (devexpress-reporting-angular)

Usage

  1. Install @devexress/reporting-angular using npm:

    npm install devexpress-reporting-angular --save

  2. Import DxReportViewerModule and DxReportDesignerModule into your module (f.e AppModule class) as described below:

    
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { DxReportViewerModule, DxReportDesignerModule } from 'devexpress-reporting-angular';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    DxReportViewerModule,
    DxReportDesignerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
  1. Add one the reporting components to html template of your component (f.e. app.component.html) as described below:

    3.1 Report viewer usage

        <div>
            <dx-report-viewer [reportUrl]="reportUrl" height="800px" cssClass='myViewer'>
              <dxrv-request-options [invokeAction]="invokeAction" [host]="hostUrl"></dxrv-request-options>
              <dxrv-tabpanel-settings width="500" position="Left"></dxrv-tabpanel-settings>
              <dxrv-callbacks 
                (BeforeRender)="BeforeRender($event)" 
                (CustomizeMenuActions)="CustomizeMenuActions($event)"
                (CustomizeElements)="CustomizeElements($event)">
              </dxrv-callbacks>
            </dx-report-viewer>
        </div>

    3.2 Report Designer Usage

        <div>
            <dx-report-designer [reportUrl]="reportUrl" height="700px" cssClass='myDesigner'>
              <dxrd-request-options [getDesignerModelAction]="getDesignerModelAction" [host]="hostUrl"></dxrv-request-options>
              <dxrd-callbacks 
                (BeforeRender)="BeforeRender($event)" 
                (CustomizeMenuActions)="CustomizeMenuActions($event)"
                (PreviewCustomizeMenuActions)="PreviewCustomizeMenuActions($event)"
                (CustomizeElements)="CustomizeElements($event)">
              </dxrd-callbacks>
            </dx-report-designer>
        </div>
  2. Initialization of the attributes inside app.component.ts:

    import { Component } from '@angular/core';
    
    @Component({
      selector: 'my-app',
      templateUrl: './app.component.html',
      styleUrls: [
          './app.component.css'
          '../../../node_modules/jquery-ui/themes/base/all.css',
          '../../../node_modules/devextreme/dist/css/dx.common.css',
          '../../../node_modules/devextreme/dist/css/dx.light.css',
          '../../../node_modules/devexpress-reporting/css/web-document-viewer-light.min.css'
      ]
    })
    export class AppComponent {
      reportUrl: string = 'InvoiceReport';
      hostUrl: string = 'http://myReportingServer/';
      invokeAction: string = 'ReportViewer/Invoke';
      
      BeforeRender(event) {
        //...
      }
      CustomizeMenuActions(event) {
        //...
      }
      CustomizeElements(event) {
        //...
      }
    
      // Report Designer Model Options
      getDesignerModelAction: string = 'ReportDesigner/GetDesignerModel';
      PreviewCustomizeMenuActions(event) {
        //...
      }
    }

Common Attributes

Full set of the report viewer options you can find in the documentation page.

NameRequiredDescription
reporturl(required)A string or Knockout observable that specifies the URL of a report to open when the application starts.
width(optional)The width of the report viewer. Default value is '100%'.
height(optional)The height of the report viewer. Default value is '700px'.
cssClass(optional)class name to attach to the root div element of the report viewer.

Report Viewer Nested Options.

dxrv-callbacks (optional) - Callbacks that allow you to customize the Web Document Viewer. These callbacks correspond to the client-side events available at the Document Viewer control's level (the only difference is that a sender object is a Document Viewer's JavaScript equivalent). See Document Viewer's Client-Side API for a complete list of available events and more information on their use.

dxrv-request-options - Options for processing requests from the Web Document Viewer on the server side: | Name | Required | Description | | ------------- | ----- | ------------- | | host | (required) | A server-side project's URI. | | invokeAction | (required) | The URI path of the controller action that processes requests. | | getLocalizationAction | (optional) | he URI path of the controller action used to customize localization strings. |

dxrv-tabpanel-settings (optional) - Settings of the tab panel appearance. | Name | Required | Description | Possible Values | | ------------- | ----- | ------------- | ---: | | width | (optional) | Width of the right panel in pixels. | N/A | | position | (optional) | Tab panel position in the desktop mode. | "Left"/"Right" |

Report Designer Nested Options

dxrd-callbacks (optional) - Callbacks that allow you to customize the Report Designer. These callbacks correspond to the client-side events available at the Report Designer control's level (the sender object is a Report Designer's JavaScript equivalent). See Report Designer's Client-Side API for a complete list of available events and more information on their use.

dxrd-request-options - Options for processing requests from the Report Designer on the server side: | Name | Required | Description | | ------------- | ----- | ------------- | | host | (required) | A server-side project's URI. | | getDesignerModelAction | (required) | The URI path of the controller action that returns the Report Designer model. | | getLocalizationAction | (optional) | The URI path of the controller action used to customize localization strings. |

Note

  • There is only one callback argument of the Report Viewer and the Report Designer events. You can find additional fields sender and args of the $event object
  • Any methods of the reporting components are accessible by the sender property of the reporting angular component instance.
23.1.9

1 month ago

23.2.5

1 month ago

22.1.13

2 months ago

22.2.11

2 months ago

23.1.8

3 months ago

23.2.4

3 months ago

22.1.12

5 months ago

23.1.7

5 months ago

22.2.10

5 months ago

21.2.15

5 months ago

23.2.3

5 months ago

22.1.11

8 months ago

22.2.9

6 months ago

22.2.8

8 months ago

23.1.5

8 months ago

23.1.4

9 months ago

23.1.6

6 months ago

23.2.2-beta

5 months ago

22.1.10

10 months ago

22.2.7

10 months ago

21.2.14

10 months ago

23.1.3

11 months ago

23.1.2-beta

11 months ago

22.1.9

1 year ago

22.2.6

1 year ago

20.1.17

1 year ago

21.2.13

1 year ago

21.1.12

1 year ago

20.2.13

1 year ago

22.2.5

1 year ago

22.1.8

1 year ago

22.1.7

1 year ago

22.2.4

1 year ago

22.2.3

1 year ago

21.2.12

1 year ago

20.1.16

2 years ago

22.2.2-beta

1 year ago

22.1.6

2 years ago

19.1.16

2 years ago

21.2.11

2 years ago

19.2.15

2 years ago

18.2.18

2 years ago

21.1.11

2 years ago

20.2.12

2 years ago

22.1.5

2 years ago

21.2.10

2 years ago

21.2.9

2 years ago

22.1.4

2 years ago

22.1.3

2 years ago

21.1.10

2 years ago

21.2.8

2 years ago

22.1.2-beta

2 years ago

20.1.15

2 years ago

21.1.9

2 years ago

21.2.7

2 years ago

19.1.15

2 years ago

19.2.14

2 years ago

18.2.17

2 years ago

20.2.11

2 years ago

21.2.6

2 years ago

19.1.14

2 years ago

20.1.14

2 years ago

21.1.8

2 years ago

19.2.13

2 years ago

21.1.7

2 years ago

18.2.16

2 years ago

20.2.10

2 years ago

21.2.4

2 years ago

21.2.5

2 years ago

21.2.3

2 years ago

21.2.2-beta

3 years ago

21.1.6

3 years ago

20.2.9

3 years ago

21.1.5

3 years ago

20.1.13

3 years ago

20.2.8

3 years ago

21.1.4

3 years ago

21.1.3

3 years ago

19.1.13

3 years ago

20.1.12

3 years ago

20.2.7

3 years ago

19.2.12

3 years ago

18.2.15

3 years ago

21.1.2-beta

3 years ago

20.1.11

3 years ago

20.2.6

3 years ago

20.1.10

3 years ago

20.2.5

3 years ago

19.2.11

3 years ago

20.2.4

3 years ago

20.1.9

3 years ago

20.2.3

4 years ago

20.1.8

4 years ago

19.2.10

4 years ago

19.1.12

4 years ago

18.2.14

4 years ago

20.2.2-beta

4 years ago

20.1.7

4 years ago

20.1.6

4 years ago

20.1.5

4 years ago

19.2.9

4 years ago

18.2.13

4 years ago

20.1.4

4 years ago

19.2.8

4 years ago

19.1.11

4 years ago

20.1.3

4 years ago

20.1.2-beta

4 years ago

19.1.10

4 years ago

18.2.12

4 years ago

19.2.7

4 years ago

19.2.6

4 years ago

19.1.9

4 years ago

19.2.5

4 years ago

19.2.4

4 years ago

19.1.8

4 years ago

18.2.11

4 years ago

19.2.3

5 years ago

19.1.7

5 years ago

19.2.2-beta

5 years ago

19.1.6

5 years ago

18.2.10

5 years ago

19.1.5

5 years ago

19.1.4

5 years ago

18.2.9

5 years ago

18.2.9-pre-19144

5 years ago

19.1.3

5 years ago

18.2.8

5 years ago

19.1.2-beta

5 years ago

18.2.8-pre-19095

5 years ago

18.2.8-pre-19073

5 years ago

18.2.7

5 years ago

18.2.6

5 years ago

18.2.6-pre-19027

5 years ago

18.2.5

5 years ago

18.2.4

5 years ago

18.2.4-pre-18339

5 years ago

18.2.4-pre-18334

5 years ago

18.2.3

5 years ago

18.2.2-pre-18312

5 years ago

18.2.2-pre-18306

5 years ago

18.2.2-beta

6 years ago

18.2.2-pre-beta

6 years ago

18.2.1-alpha.5

6 years ago

18.2.1-alpha.4

6 years ago

18.2.1-alpha.3

6 years ago

18.2.1-alpha.2

6 years ago

18.2.1-alpha.1

6 years ago