Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
RCP Example
Contents
RCP Example
This example explains how to deploy the BIRT Viewer within an RCP application.
Add comments at the bottom of the example.
BIRT Report Engine API Return to the BIRT Report Engine API examples
Setup
1. Add the BIRT Viewer plug-in to your project dependencies. Runtime dependencies will be determined by what options your reports use. For example if you use a JDBC data source, then the JDBC plug-in will be required at runtime.
2. Call WebViewer.display from your code. Use one of the following options. Note that browser will need to be defined as an org.eclipse.swt.browser.Browser.
Code Snippet
//option 1 display with no parameters in url. //Parameter box will display if //required in a seperate window. //This uses the /run mapping //WebViewer.display(reportName , // WebViewer.HTML, // false);
//option 2 display BIRT Viewer in sepearate //Browser with /frameset mapping //WebViewer.display(reportName , // WebViewer.HTML, // true);
//option 3 display in SWT Browser //using /frameset mapping. //WebViewer.display(reportName, // WebViewer.HTML, // browser, // "frameset");
//option 4 display in SWT Browser // using /run mapping. //WebViewer.display(reportName, // WebViewer.HTML, // browser, // "run");
Comments
Please enter comments below by selecting the edit icon to the right. You will need a Bugzilla account to add comments.
Example of using the Report Viewer in an RCP application. BIRT RCP Viewer
Example of using the Report Engine in an RCP application.
BIRT RCP Engine