View Full Version : overwriting string-fields
Anonymous
08-23-2002, 08:02 PM
sometimes strings are wider than the assigned widtht of their string-fields and then the following string gets overwritten. Is it possible to avoid that?
e.g. if a string is 100 pts long but its string-field allows it to be only 50 pts long, is it possible to hide the extra 50 pts?
Anonymous
08-26-2002, 05:13 PM
Hi,
this issue is now fixed, string which are too long to fit into the field are cut and a "..." is appended to indicate that the string did not fit into the field.
Have more fun,
said Thomas
Anonymous
08-28-2002, 02:21 PM
I have JFreeReprt version 0.7.5 and it does not work. maybe this needs to be specified in the string-field tag or something?
Anonymous
08-28-2002, 03:13 PM
Hi,
Please upgrade to the current version from the cvs. It is fixed there, version 0.7.5 is a month old and does not contain the latest fixes and improvements, and somewhere in next week (so the gods are with me) there will be a version 0.7.6.
You will also need the BeanShell for the CVS version to work, download it from "http://www.beanshell.org/bsh-1.2b6.jar" (212kb).
Have more fun,
said Thomas
Anonymous
08-29-2002, 11:02 AM
how do I upgrade from the CVS. I'm not sure what exactly the CVS is...
Anonymous
08-29-2002, 12:50 PM
Hi,
the CVS is our sourcecode repository. JFreeReports sources are stored there and whenever features are added or bug get fixed, the changes were stored there. The CVS contains the latest development version of JFreeReport.
A warning: Getting the newest features and bugfixes is one thing, if can happen that the cvs version has some more bugs than the current release, especially in mid-development, when everything is in flow. But the current version is stable (I hope :)), as the next version is on the doorstep.
Assuming you use Linux, these 2 command will checkout the latest sources from the cvs (The password is empty, simply press enter):
cvs -d:pserver:anonymous@cvs.jfreereport.sourceforge.net:/cvsroot/jfreereport login
cvs -z3 -d:pserver:anonymous@cvs.jfreereport.sourceforge.net:/cvsroot/jfreereport co jfreereport
In WinCVS (if you are using Windows), you can use the same access data:
cvsroot: :pserver:anonymous@cvs.jfreereport.sourceforge.net:/cvsroot/jfreereport
Module to checkout is "jfreereport"
There exists a huge amount of documentation for cvs on "www.cvsgui.org/doc.html". For WinCVS the link for the documentation is "http://www.cvsgui.org/winhtml/wincvs11.htm".
Have more fun,
said Thomas
Anonymous
09-11-2002, 10:56 PM
Hi,
I've upgraded to the latest version of JFreeReport 0.7.6 and I've downloaded BeanShell (included in my classpath)... but the "multiline" effect is still now showing... what else should I do??? :(
Please help..
Thanks a million (in advance).
Regards,
Wee Lep
Anonymous
09-14-2002, 10:28 AM
Hi,
can you post the element declaration for that field? And another thing: Is the text you want to break down a single word or are multiple words in the line.
Leonlyong wrote another fix for the linebreak issue: When the length of the largest word in the mutiline text is bigger than that of the TextElement, It prints blank lines until the last line which produces the left of the text from the largest word. This is fixed since the Sept-11, but if your cvs update was done before this day, you should checkout this fix too.
Have more fun,
said Thomas
Anonymous
10-15-2002, 03:08 PM
I am printing a table with a lot of columns (~15) and I would rather the see a part of the column title instead of the "...". Is there a solution or workaround for this?
Thanks,
Jeff
Anonymous
10-15-2002, 04:56 PM
Hi,
not yet, the method doing the breaks is rather primitive and needs improvement ... A workaround could be to define the element bigger than needed, overwriting the next element in the row. The element space is not cleared before writing, so if your elements are not too big, it could work without messing up your design ... Another solution would be to manually split your column header (by inserting linebreaks and writing over multiple lines) ...
Have more fun,
said Thomas