Web view
As described in the chapter view report, reports are displayed via the BIRT Report Viewer by default. You can, however, also open a report in a web browser. Open the Window menu and click on Preferences. Select the menu item Report Design - Preview.
Check the check box Always use external browsers in order to activate the use of web browsers for displaying reports. Select the Report Design - PreviewServer option to specify an IP address and a port number for the internal application server. Here you can specify the local IP address (the computer on which the eclipse package was installed) and the port number under which the preview server should run.
Note that when you do not specify the port number, the port number is changed dynamically every time you open the report. This applies especially when opening a report via the WebView.ewo!
If necessary, you can select the default browser in the Web Browser section.
Click on the button and the report is displayed in the web browser.
The IP that was specified above for the Preview server is opened. Note that if you want open a report on another computer, use the IP address and port number of that computer.
URL Parameters
The are URL parameters that can be used for a report when it is opened in a browser.
Note that the URL path looks different depending on whether the Eclipse package preview server or an external application server such as Tomcat is used!
If you have specified parameters for your report (see chapter Create report parameters), you can assign several parameters as follows:
e.g. http://158.226.33.180:777/birt/frameset?__report=test.rptdesign&sample=my+parameter
In the example above, the report parameter "sample" is assigned to the report with the value „my+parameter“. Note also the correct encoding when passing the time "2015-03-27T12:16:52“ to the report parameter "End time" :
e.g. &End%20time=2015-03-27T12%3A16%3A52
-
If you pass all report parameters by using the URL, set the parameter „__parameterpage“ (NOTE the double underline) to "false". In this case the parameter window is not shown and the report is generated immediately.
-
You can also set the output format (PDF, HTML, XLS) directly by using the parameter __format=<format>, e.g. __format=pdf.
-
You can change the language of the viewer via the __locale=<language>parameter (e.g.__locale=en_US) if you have specified a resource file for a language. See chapter Multilingualism.
For detailed information on these and further parameters, see http://eclipse.org/birt/documentation/integrating/viewer-usage.php.