Jump to content
Changes to the Jaspersoft community edition download ×

Exporting to HTML goes into infinit loop.


Recommended Posts

By: J rgen Lundberg - jorgen99

Exporting to HTML goes into infinit loop.

2003-10-24 05:31

We have a report that has a subreport, wich in its turn has a subreport, and when we try to export it to HTML jasper goes into an infinit loop, printing a link to the spacer px over and over.

If we export it to pdf all is well. The pdf-file is valid and opens fine in acrobat. When we send the JasperPrint to the JasperViewer it also displays fine.

Anyone experience this behaviour before?

Any help would be much appreciated!

 

The design-, pdf- and jasperfiles can be fetched here:

http://www.transware.se/TaskList.zip

 

/J n Lundberg

 

 

 

 

 

By: J rgen Lundberg - jorgen99

RE: Exporting to HTML goes into infinit loop.

2003-10-24 05:35

I forgot to mention that we use version 0.5.0.

 

/ J n

 

 

 

 

 

By: Jorge Augusto Pizzato - pizzato

RE: Exporting to HTML goes into infinit loop.

2003-10-24 11:25

I using 0.5.0 version and I also have a similar problem.

He seems really that the program enters in infinite loop, but after + - 25 minutes the html file is generated with huge size.

If I export to PDF format the file has 7kb and it's ok.

If I export to HTML the file has 4194296kb and crash the IExplorer if I try to open this.

I don't know if this is the problem, but this case is only happening in two reports with sub-reports and scriptlets.

Any ideas for solve it?

 

 

 

 

By: J rgen Lundberg - jorgen99

RE: Exporting to HTML goes into infinit loop.

2003-11-07 08:17

I did some debugging with the jasper source. I found the line that causes the infinit loop.

It's in JRHtmlExporter line 643.

x += grid[y][x].colSpan - 1;

 

The problem is that when exporting my report x == 1

and grid[y][x].colSpan == 0, and after the line above x == 0.

So, when the loop continues the for loop adds 1 to x and we end up in the same place again.

 

Any ideas, Theodor?

I will continue looking in to this on monday.

 

Regards,

 

J n Lundberg

 

 

 

 

 

By: Jorge Augusto Pizzato - pizzato

RE: Exporting to HTML goes into infinit loop.

2003-11-09 10:32

I solved my problem altering the options height and width in the tag subreport. With the options width="0" and height="0" the file pdf was generated but the html no. Putting in "width" the width of the report and in "height" the sum of the heights of the subreports the file html is also generated.

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...