Last updated
Was this helpful?
Last updated
Was this helpful?
(beans.jasperReportsServoyViewer)
The JasperReportsServoyViewer
is a Servoy bean designed to embed and display JasperReports within Servoy applications. It provides scripting capabilities for customizing visual properties such as background, foreground, font, size, and borders. The bean integrates with the JasperReportsProvider
to support dynamic report viewing and customization. ## Functionality Reports can be rendered and displayed using the js_showReport
method, which accepts parameters such as data source, report file, and locale. The viewer supports various export formats, configurable through scripting. The bean also facilitates managing paths for report directories and extra resource directories, ensuring integration with the JasperReports plugin. The JRViewer
wrapper enables fine-tuned control of the viewer’s display behavior and export functionality.
Sets or gets the background color of the Bean.
Sample
This is a readonly property which returns the bean version. The bean version indicates which version of the Servoy JasperReports plugin the bean should be used with.
Sample
Gets or gets the file save/export formats of the Bean's viewer.
Sample
Sets or gets the border type, width and color.
Sample
Sample
Sets or gets the font type of the Bean's viewer.
Sample
Sets or gets the foreground color.
Sample
Gets or sets the name of the Bean.
Sample
Get or set the relative path or comma separated paths to the extra resource directories of the Servoy JasperReports plugin. The paths are set per client and are relative to the server corresponding directories setting.
Please refer to the same property of the Servoy JasperReports plugin for more details.
Sample
Property for retrieving and setting the path to the reports directory, set by the current client, relative to the server reports directory of the Servoy JasperReports plugin.
Please refer to the same property of the Servoy JasperReports plugin for more details.
Sample
Gets the height of the Bean.
Sample
Gets the x-coordinate of the Bean's top-left corner location.
Sample
Gets the y-coordinate of the Bean's top-left corner location.
Sample
Gets the width of the Bean.
Sample
Parameters
Returns: void
Sets the size of the Bean.
Parameters
Returns: void
Sample
Shows the indicated report in a JasperReports Viewer (in the Bean).
Parameters
Returns: void
Sample
Shows the indicated report in a JasperReports Viewer (in the Bean).
Parameters
Returns: void
Sample
Shows the indicated report in a JasperReports Viewer (in the Bean).
Parameters
Returns: void
Sample
Type the border color of the bean
Type the version of the bean; this should be in sync with the version of the plugin used
Type the file save/export formats of the viewer
Type border type, width and color
Type the display mode of the viewer
Type the font type used in the viewer
Type the foreground color
Type the name of the Bean
Type the relative path or paths to the client set extra directory/directories
Type the location of the client set reports directory, relative to the server set path
Type
Returns: the height of the Bean
Returns: the x-coordinate of the Bean's top-left corner location
Returns: the y-coordinate of the Bean's top-left corner location
Returns: the width of the Bean
x ;
y ;
width the width of the bean
height the height of the bean
source the datasource (the server name, foundset or dataset) to run the report on
report the report file to export and preview (relative to the reports directory)
parameters the map of parameters to be used when previewing the report
source the datasource (the server name, foundset or dataset) to run the report on
report the report file to export and preview (relative to the reports directory)
parameters the map of parameters to be used when previewing the report
localeString the string which specifies the locale
source the datasource (the server name, foundset or dataset) to run the report on
report the report file to export and preview (relative to the reports directory)
parameters the map of parameters to be used when previewing the report
localeString the string which specifies the locale
moveTableOfContent true in order to move the table of contents, false otherwise
Sets or gets the background color of the Bean.
This is a readonly property which returns the bean version.
Gets or gets the file save/export formats of the Bean's viewer.
Sets or gets the border type, width and color.
Sets or gets the font type of the Bean's viewer.
Sets or gets the foreground color.
Gets or sets the name of the Bean.
Get or set the relative path or comma separated paths to the extra resource directories of the Servoy JasperReports plugin.
Property for retrieving and setting the path to the reports directory, set by the current client, relative to the server reports directory of the Servoy JasperReports plugin.
Gets the height of the Bean.
Gets the x-coordinate of the Bean's top-left corner location.
Gets the y-coordinate of the Bean's top-left corner location.
Gets the width of the Bean.
void
void
Sets the size of the Bean.
void
Shows the indicated report in a JasperReports Viewer (in the Bean).
void
Shows the indicated report in a JasperReports Viewer (in the Bean).
void
Shows the indicated report in a JasperReports Viewer (in the Bean).