WebViewer Display Deprecated?? [message #644365] |
Fri, 10 December 2010 12:15  |
Eclipse User |
|
|
|
Hi,
i'm new on BIRT. I'm working on an RCP application and want to add some Reporting with BIRT.
I'm running following example as starting point.
http://www.vogella.de/articles/EclipseBIRT/article.html
In this section of the code, the display method is marked as Deprecated:
Browser browser = new Browser(parent, SWT.NONE);
// Use the filename of your report
WebViewer.display(path, WebViewer.HTML, browser, "frameset");
What is the new way to display a report using WebViewer ? is there any other way to doit?
Any link to any other example will be greatly appreciated...
I'm running Galileo+BIRT 2.5.2
Pls, help.
|
|
|
|
Re: WebViewer Display Deprecated?? [message #644655 is a reply to message #644419] |
Mon, 13 December 2010 11:33   |
Eclipse User |
|
|
|
Try this:
HashMap myparms = new HashMap();
HashMap emitmap = new HashMap();
myparms.put("SERVLET_NAME_KEY", "frameset");
myparms.put("FORMAT_KEY", "html");
//myparms.put("RESOURCE_FOLDER_KEY", "c:/myresources");
myparms.put("ALLOW_PAGE", "false");
myparms.put("SHOW_PARAMETER_PAGE", "false");
//Report Parameters
emitmap.put("Top Count", "6");
emitmap.put("Top Percentage", "15");
myparms.put("EMITTER_OPTIONS_KEY", emitmap);
//myparms.put("MAX_ROWS_KEY", "500");
WebViewer.display(rpt, browser, myparms);
Jason
On 12/10/2010 9:44 PM, Hugo Herrera wrote:
> This is because i'm using Java 1.6.
>
> What do I have to use instead of display method on 1.6?
|
|
|
|
Powered by
FUDForum. Page generated in 0.07508 seconds