Skip to main content



      Home
Home » Archived » BIRT » charts problem
charts problem [message #79559] Thu, 06 October 2005 12:23 Go to next message
Eclipse UserFriend
Originally posted by: ojauze.gmail.com

Hello,

i am trying to display charts in HTML reports. It works in eclipse, with
the birt viewer but in my web app I can not display any charts. It works
when I choose PDF output format.

When I look at the generated html page, it seems that the img tag (which
should display an image from a temporary image file) does not have any
source.

Here is the img tag when it works (with eclipse or the web app viewer):
<img src="/birtViewer/run?__imageID=custom6" style=" width: 400pt; height:
250pt;">

Here is the img tag when it doesn't work (with my web app):
<img style=" width: 400pt; height: 250pt;">

It seems that a new http post is done when the report is displayed to get
the temporary image file. I can not figure out how can i do in my web app.

thanks for your help
Re: charts problem [message #79741 is a reply to message #79559] Fri, 07 October 2005 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thmwg.web.de

Hi jauze,

I had the same problem. You have to add the imageDirectory and the
baseURL. Then it works.

Greetings
Thomas

jauze wrote:

> Hello,

> i am trying to display charts in HTML reports. It works in eclipse, with
> the birt viewer but in my web app I can not display any charts. It works
> when I choose PDF output format.

> When I look at the generated html page, it seems that the img tag (which
> should display an image from a temporary image file) does not have any
> source.

> Here is the img tag when it works (with eclipse or the web app viewer):
> <img src="/birtViewer/run?__imageID=custom6" style=" width: 400pt; height:
> 250pt;">

> Here is the img tag when it doesn't work (with my web app):
> <img style=" width: 400pt; height: 250pt;">

> It seems that a new http post is done when the report is displayed to get
> the temporary image file. I can not figure out how can i do in my web app.

> thanks for your help
Re: charts problem [message #79786 is a reply to message #79741] Fri, 07 October 2005 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ojauze.gmail.com

Hi Thomas,

thanks for your answer.

Do you use the PlatformServletContext class in the EngineConfig ?

something like that:
config.setEngineHome( "" );
IPlatformContext context = new PlatformServletContext( servletContext, url
);
config.setEngineContext( context );

thanks
Re: charts problem [message #79998 is a reply to message #79786] Sun, 09 October 2005 07:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thmwg.web.de

Hi jauze,

if you use the example given on the birt website you have to add following
lines.

HTMLRenderContext context= new HTMLRenderContext();

context.setImageDirectory("E:\\Entwicklung\\JBoss4\\server\\default\\deploy\\test.war ");

context.setBaseImageURL("http://localhost:8080/test");

Hope it helps.
Thomas

jauze wrote:

> Hi Thomas,

> thanks for your answer.

> Do you use the PlatformServletContext class in the EngineConfig ?

> something like that:
> config.setEngineHome( "" );
> IPlatformContext context = new PlatformServletContext( servletContext, url
> );
> config.setEngineContext( context );

> thanks
Re: charts problem [message #80133 is a reply to message #79998] Mon, 10 October 2005 08:03 Go to previous message
Eclipse UserFriend
Originally posted by: ojauze.gmail.com

hello Thomas,

thank you, it works

have a nice day
Previous Topic:BIRT vs Business Objects vs Crystal Reports
Next Topic:Tomcat oracle table processing runtime error
Goto Forum:
  


Current Time: Thu May 01 16:57:27 EDT 2025

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

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

Back to the top