Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » WebViewer Display Deprecated??
WebViewer Display Deprecated?? [message #644365] Fri, 10 December 2010 17:15 Go to next message
Hugo Herrera is currently offline Hugo Herrera
Messages: 20
Registered: July 2009
Junior Member
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] Sat, 11 December 2010 02:44 Go to previous messageGo to next message
Hugo Herrera is currently offline Hugo Herrera
Messages: 20
Registered: July 2009
Junior Member
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 16:33 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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] Tue, 14 December 2010 04:42 Go to previous message
Hugo Herrera is currently offline Hugo Herrera
Messages: 20
Registered: July 2009
Junior Member
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: Mon Oct 20 11:41:49 GMT 2014

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

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