Border in jasper report - jasper-reports

I am creating a jasper report .In that I want apply border to the each page.Can any one provide me some help on this.Border height should depend on the contents height of that page.
Thanks.

You can add a full size rectangle or bordered frame to the background band.

You can do this by creating a frame or a rectangle in an outer report and then put inside it a supreport. The subreport should be allowed to expand as it wants and the rectangle should be set to Stretch to the band height.

Related

How to put footer?

I want to put a footer , a copyright , on the bottom of my Form : even if the main content is larger in height then I want the footer always visible , and there is a vertical scrollbar associated with the main content. Here is a suggestive image :
How to accomplish that ?
Use a BorderLayout. The footer goes into south. You need additional nesting, and your new main container goes into center. You need make sure that this main container is set to be scrollable.

Fix height to smallest possible GTK

I have placed buttons inside a horizontal box inside a window. Now I want this box to be on the top of the window with the smallest possible height. The rest of the window is drawing area for an image display that changes height with the window. How?
I solved it using a table with the following for the first and second row
gtk_table_attach(GTK_TABLE(table),toolbar,0,1,0,1
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND)
,GTK_SHRINK,0,0);
gtk_table_attach(GTK_TABLE(table),test,0,1,1,2
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND)
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND),0,0);

Textfield Spacing with "Stretch on Overflow" buggy?

I am currently designing a report using iReport 4.7.0. At the moment I am trying to figure out how to dynamically adjust the height of a textField, if its contents is too big for the initial height. It seems, that the option Stretch on overflow achieves this. But I am having problems with that.
If a textField is not stretched, the spacing before and after the text is good, because its achieved by setting the textField height higher than the font size. But if the textField gets dynamically bigger because the containing text is to long to display with the initial height, the lines seem awfully packed, there is no spacing whatsoever.
I tried so resolve this by setting Spacing before and Spacing after for the specific textField but this seems to end in JasperReports thinking, that the textField doesn't need to re-size at all, even if the text is not fitting.
Is it possible, that the size created by the Spacing before and Spacing after option is taken into account on calculating, if a textField needs to be resized on overflow? Or am I doing something wrong here?
Use padding:
Right-click an element
Select Padding and Borders
-or-
Right-click an element
Select Show Properties
Click the Borders tab
Set padding values as required
This should provide a constant spacing even if box resizes. For complex layouts, experiment with float position of elements, as described here.

Detail band with borders in iReport

I have to encapsulate header column, detail and page footer bands (column footer is set to 0 height) with borders. Is there an easy way to do it?
I've read this StackOverflow question and I try to use a frame in the background band, but how can I know the exact height of the detail band?
UPDATE: I found myself a solution. The solution is to "trial and error", setting random frame height until I get the exact height.
In the report inspector on the left click on "Detail 1" and then on the right in properties it'll tell you the 'Band Height'...You can change it from there.

PictureScrollField in BlackBerry

I want to create a PictureScrollField using some images in Blackberry.By default it is displayed on the top of the screen with the given width and height.
But if we want to display the entire one at certain coordinates say(x,y),then how to align them.
add the picture scroll field in a horizontal field manager and align the manager