Jump to content
JasperReports Library 7.0 is now available ×

need help with webapp


Recommended Posts

By: Michelle Popovits - mpopovits

need help with webapp

2002-01-31 12:09

Hi,

I am trying to implement the sample app as a web app. I am following some of the advice in the

thread: http://sourceforge.net/forum/forum.php?thread_id=617668&forum_id=113529

 

I am getting this error:

dori.jasper.engine.JRException: Error loading image data : JasperReports.jpg

 

What can I do to make this work?

Has anyone else converted the sample app as a web app?

 

Help!

 

Thanks,

Michelle

 

 

 

By: Michelle Popovits - mpopovits

RE: need help with webapp

2002-01-31 13:32

Ok, in order to get past this error I removed the following section from the xml file:

 

<image scaleImage="RetainShape">

<reportElement x="5" y="5" width="165" height="40"/>

<graphicElement/>

<imageExpression>"JasperReports.jpg"</imageExpression>

</image>

 

 

Now, I run it and get this error displayed in the browser:

 

Error occured

The exception reported this message: Width (-1) and height (0) must be > 0

 

java.lang.IllegalArgumentException: Width (-1) and height (0) must be > 0

 

 

 

 

By: Michelle Popovits - mpopovits

webapp problems

2002-02-01 12:15

I figured out this problem.

It was because of the duke image.

In the webapp environment the application doesn't know how to get various resources from within a webapp archive. Also, had problems with the pdf font comic.ttf. I removed all of these things and I get to the point where it returns data but it is not viewable as a pdf.

 

I will need to start building the reports application next week as a web app and it looks like this framework needs quite a bit of work to get it going in that environment. If I can get some help over the next few days, maybe I'll be able to do it...?

 

-Michelle

 

 

By: Teodor Danciu - teodord

RE: need help with webapp

2002-02-04 00:06

 

Hi,

 

If there are no more errors when generating the PDF content,

try browsing with Netscape because IE behaves weird sometimes.

 

Enhanced Web support has already been introduces and will be

available in the 0.2.3 version this week.

It includes support for working with streams and loading images

from CLASPATH and URLs.

 

Thanks,

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...