|
|
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == RCP Example ==
| + | Moved to [[RCP Example (BIRT) 2.1]] |
− | | + | |
− | 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.
| + | |
− | [[Image:Example.jpg]]
| + | |
− | | + | |
− | 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.
| + | |
− | | + | |
− | //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");
| + | |
Latest revision as of 15:30, 4 October 2007
Moved to RCP Example (BIRT) 2.1