Skip to main content



      Home
Home » Archived » BIRT » WebViewer Display Deprecated??
WebViewer Display Deprecated?? [message #644365] Fri, 10 December 2010 12:15 Go to next message
Eclipse UserFriend
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 #644419 is a reply to message #644365] Fri, 10 December 2010 21:44 Go to previous messageGo to next message
Eclipse UserFriend
This is because i'm using Java 1.6.

What do I have to use instead of display method on 1.6?
Re: WebViewer Display Deprecated?? [message #644655 is a reply to message #644419] Mon, 13 December 2010 11:33 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: WebViewer Display Deprecated?? [message #644744 is a reply to message #644655] Mon, 13 December 2010 23:42 Go to previous message
Eclipse UserFriend
Thank you very much Jason!
Previous Topic:Strange Exception after 2 months of running
Next Topic:PDF compression or/and gzip
Goto Forum:
  


Current Time: Tue Jul 22 11:52:14 EDT 2025

Powered by FUDForum. Page generated in 0.07508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top