File

src/ui/report-viewer/report-viewer.component.ts

Extends

AbstractFormChild

Implements

OnInit AfterViewInit OnChanges OnDestroy

Metadata

Index

Properties
Methods
Inputs

Inputs

smart-auto-load-report
Type : boolean
Default value : true
smart-data-source
Type : string
smart-report-data-request-method
Type : "get" | "post"
Default value : 'get'
smart-report-data-request-payload-fields
Type : string
smart-report-data-url
Type : string
smart-report-template-url
Type : string
ignoreFlexboxLayout
Type : boolean
smart-help-text
Type : string | undefined

Sets the HelpText value for this form child.

smart-instance-name
Type : string

The instance name of the component

smart-object-name
Type : string

The object name of the component

Methods

getActiveReportsViewer
getActiveReportsViewer()

Get the ActiveReports viewer

Returns : Viewer
  • The ActiveReports viewer
handleLayoutChange
handleLayoutChange(styling: any)
Parameters :
Name Type Optional
styling any No
Returns : void
loadReport
loadReport(templateUrl: string, dataUrl: string)

Load the report and open it in the report viewer

Parameters :
Name Type Optional Description
templateUrl string No
  • The URL of the report template
dataUrl string No
  • The URL of the report data
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

Public smartDataSource
Type : AbstractSmartDataSource
Public injector
Type : Injector
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") -                  *
* www.consultingwerk.com and other contributors as listed                *
* below. All Rights Reserved.                                            *
*                                                                        *
*  Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY        *
*   KIND, either express or implied.                                     *
*                                                                        *
*  Contributors:                                                         *
*                                                                        *
**************************************************************************

--------------------------------------------------------------------------
    File        : report-viewer.component.html
    Purpose     : Template for report viewer.
    Author(s)   : Radu Nicoara
    Created     : Aug 29, 2025
--------------------------------------------------------------------------
-->
<div #viewerHost class="smart-report-viewer-host w-100 h-100"></div>

./report-viewer.component.scss

/**********************************************************************
 * Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") -              *
 * www.consultingwerk.com and other contributors as listed            *
 * below. All Rights Reserved.                                        *
 *                                                                    *
 *  Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY    *
 *   KIND, either express or implied.                                 *
 *                                                                    *
 *  Contributors:                                                     *
 *                                                                    *
 **********************************************************************/
/*------------------------------------------------------------------------
    File        : report-viewer.component.scss
    Purpose     : Styles for report viewer.
    Author(s)   : Radu Nicoara
    Created     : Apr 07, 2025
  ----------------------------------------------------------------------*/

:host {
	display: block;
	width: 100%;
	height: 100%;
}

.smart-report-viewer-host {
	display: block;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""