File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Jasper Report help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Jasper Report help" Watch "Jasper Report help" New topic
Author

Jasper Report help

Yaddif Medina
Greenhorn

Joined: Oct 05, 2005
Posts: 23
Hi,

I have a report that have different font types at the "field name" (First Name, Last Name, etc) and "field value" (Smith, Fred, etc) (then they have to be separated). The problem is that when the field value exceeds its size, the field value below will take the new position but the field name keep in its position. A picture is more explanatory:

If the field of Smith has (ie) 100 characters it has to be shown in 2 lines ... then "Fred" it's going to be print at the 3th line, but "Last Name" will remain in its place ... and I need that it pass to the third line too. The result should be lie this:

but, I get:

Can you help me?.
Thanks in advance.

//Edit JAM -- added CODE tags
[ October 06, 2005: Message edited by: Joel McNary ]
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1812
What you need to do is add a line that stretches all the way across the page, and have it between your first and last name fields. Make sure that the line has a pen width of none (so it will be invisible).

So your report will look like this (in pseudo-code!)

<REPORT TITLE>

<First Name Static Text><First Name Data>
<Line x = 0, width = page width; pen = none; Position Type = Float>
<Last Name Static Text; Position Type = Float><Last Name Data; Position Type = Float>

The overflow from the first name data will push the position of the invisible line down, which will push the position of both the last name static text and last name data fields down, resulting in your desired output.

And I'm moving this to our "Other Open Source Projects" forum, where it is more appropriate.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Yaddif Medina
Greenhorn

Joined: Oct 05, 2005
Posts: 23
Hi Joel,

Great Idea, i'm going to test it.

Thanks for your help.
 
 
subject: Jasper Report help
 
Threads others viewed
plz reply as soon as possible
What is "$$" for?
Search exactly matches or partially matches?
Array List from a text file
Make fields required when one has a value.
IntelliJ Java IDE