Report's stretch table - jasper-reports

I have a problem with JasperReports's report layouting.
The table can be 1-5 rows and it must stretch. If i set up height of the table more than actually data then table shrink but elements below the table doesn't change Y position. But if i set the table height too small so i get "Infinite loop" error. I tried different combinations of properties "Position Type", "Stretch Type", "Print when overflow", etc.
Help please! I saw examples with stretch TextFields, but if i use it i get Infinite loop error :(

To stretch a table,
Double click it in the 'Main Report'. This will open the table in a
new tab.
In the tab 'Table', the hierarchy is defined in the
'Outline'.
Select the table and you can see the dimensions of the
table in the advanced properties
Alternatively, you can drag the table border with mouse to stretch it.

Ok, problem is fixed. I just put the table into subreport.

Related

Jasper dynamic number of rows in table

I have a table in jasper which can have dynamic number of raws and I don't know how many would be. And after table I have a textField. Is it possible to make margin of textfield from the BOTTOM of the table?
Yes, it is possible. You have to set the position of the text field as Float.
Select the text field component in the Outline view
Now, in the Properties view, select Appearance tab
Under location, chose Position type value as Float from the dropdown

Can a child text box grow with parent rectangle in SSRS

I have a rectangle with 2 subreports in it. I am trying to have a "header" text box to the left of the two reports that grows with the rectangle so that the "header" stays centered with the content. Current Arrangement
Desired Arrangement
I'm not sure how you have constructed the table/rectangles but this should work...
There is almost certainly a better way of doing this but this does work...
First insert a table. Delete the last two columns so you only have a single column left.
Then Delete the header row, you'll have a single cell remaining.
Now go to the Row Groups at the bottom of the screen, click the drop down and choose, "Add Group" --> "Parent Group".
In the dialogue, type 1 in the Group by field (this is just a dummy value) and select "Add group header". Click OK.
Optionally, you can right-click the details group and delete it. Select Delete Group Only when prompted.
Now the left column is merged so you can put your header text in there and set Vertical Align to "Middle". Add you sub reports as required and it will always be centred. Sere's some examples with different sized sub reports.
and finally with the text rotated which if your header is short and be formatted in a large enough font, sometimes looks better.
I left the ugly border in place so you can see the positioning more clearly.
Create a table with two cells. Your header cell on the left and a blank cell on the right. Then create a second table with your data. Drag and drop it into the blank cell.
The grouping in the parent cell will apply to the child cell in the table. The parent table's dataset will override a different dataset in the child table (which I doubt will cause any concern for you).
To make it look right you will want to remove the outside borders of the child table.

How to auto center the table after hiding few columns in jasper report

I have been hiding my columns in the table based on the columns I want to hide by passing parameters boolean value to false. It is all working fine, but the problem is when I hide the columns the whole table look likes it has moved to the left and it appears even more weird when I try hide 3 or more columns. I some how need to figure it out and bring the table to the center of the containner after hiding the columns that needs to be hidden. I not able to find any properties to make this change in jaspersoft. Please help me do this.
MY TABLE WITHOUT HIDING
AFTER HIDING THE COLUMNS
How could I make my table center align to the container of that respective band

table columns are not visible in report

I have 10 columns in a table in iReport Design view.
In Preview it generated a report where I get to see only 7 columns of the table. The last 3 columns are not visible (truncated).
How to fix it?
Select the name of the report on Report Inspector. Right Click on the same, select properties.
Modify the Width and Height. After modifications, preview and adjust the height and width accordingly.

Merging Cells Vertically in SQL Reporting 2008

In SQL Reporting 2008, Is there a way to merge multiple cells that are adjacent to each other along a vertical column?
In the report designer, click on your table, then at the bottom of the screen there is a window spit in two with the headings "Row Groups" and "Column Groups". In row groups, click on the little down arrow next to the default group "table1_Details_Group" and choose to add a parent group. Select the field you want to group on, and don't check the boxes to add a row header or footer. A new column will be added and when you preview you will see that the cells of this column are merged vertically.
You cannot merge cells vertically, only horizontally.
You can, however, create table groups. Grouped data inside a table can be designed to look like merged vertical cells.
EDIT
INFORMATION ON MATRIX CONTROL
You may use matrix table to do it. It force you to have a group column, however you can just set the group column visibility as Hidden. Then add new columns you needed.
see image here: ( my Month is merge cells from two rows)
http://i.stack.imgur.com/WA2ZL.png