Vertical & Horizontal data arrangement in same page of Crystal Reports - crystal-reports

I am importing data from a single data set in my crystal reports. I have just a single column table in my report. I want to arrange some data vertically say 10 rows of the table (In two vertical lines) and some data horizontally say next 10 rows of the same table (In two horizontal lines). I have managed to do the first part that is arranged the vertical lines side by side (By using the option Format With Multiple Columns in the section expert. I am facing difficulty in arranging horizontal lines on the same page (side by side of vertical lines). Any hints how can I achieve this. Any help will be appreciated.
Note: I have tried the subreports method, but was unsuccessful. The subreports shows one row per page for horizontal data and vertical data also limits then one row per page when I use subreports.
Image also attached for reference

Make sure to choose the correct printing direction. Tick `Across then Down':

Go to Section Expert.
Select the section you want to make it multiple column under "Sections" (usually it's 'Details')
Make sure you have "Format with Multiple Columns" is checked under Common Tab
Now you should see Layout Tab on the top right corner, select that.
Set Width to 2" or whatever you want under Detail Size.
Then under "Printing Direction" set "Across then Down" option.
Click OK and you are all set :)

Related

Crosstab report overlap

I am using Jaspersoft studio 6.2. In my report, only one summary band, two crosstabs are placed vertically. The issue is the two crosstabs will overlap if I don't leave enough space for the top crosstab. But the truth is the row group is from a query so is dynamic, I will never know what height is enough (or too much) for the top crosstab. I am from other reporting tools (ssrs, crystal), this never been an issue, just wondering what's the best practice to deal with it in Jasper?
EDIT: added screenshots
The report definition in jaspersoft studio. There are two crosstabs in summary band. There is not much space between two crosstabs.
The result: you can see two crosstabs overlap.
The only solution I have is to put huge space between the two like this: The only problem is next time there may be more data and crosstab 1 may grow and will overlap again.
Set position type = Float of second crosstab.
You can find it in properties - > appearance tab.

Jaspser Reports Detail Dyanmic Column Width

I have a JasperReport file with the basic header/detail/footer bands. In my Details, I have a Column Header row in a Grid Layout and a Detail Row, also in a GridLayout. I'm having a few issues with this Detail section. I have 3 columns that I'm hiding with an expression using printWhenExpression=$P{Exp1}. This works to hide the field, but the rest of the columns in the detail section don't adjust to this. So I'm left with a giant blank column in the middle of my detail section.
I'm coming from Crystal Reports where I could just suppress fields and the CR would adjust widths as necessary. I can't seem to find anything to do the same with JasperReports, which doesn't make much sense since I would expect a GridLayout to try and fill up the space as needed. So is there any way to have a table/grid like layout that will adjust column widths to fill the available space when a field is hidden.

Jasper sub report border line not covering all tuple height

All Works fine but, rows margin do not cover all height. as shown in attached these two pictures.
How I am doing: I put rectangle in detail band, than sub report and other fields. on all fields, sub-report and rectangle i also apply stretchType="RelativeToTallestObject and isStretchWithOverflow="true" for warping up the text which works fine. I am facing this problem still unresolved.
As per my understanding: sub-Report fields are also stretchType="RelativeToTallestObject but didn't detect or get stretched of its main-report column. while if sub-report need extra space it will show properly. I have tried almost every thing available in iReport-Designer.
Drop figures. Use borders, preferably via report styles.

How to create vertical line in iReport?

I'm using iReport-3.7.4 ,
I want to make table in detail like this ,
but , the line in this table can't longwise until the end of the table,
I've placed this table in detail ..
In iReport, Right Click on a Field, and goto Padding and Borders and set Line width to 1. As shown below:
Put the repetitive things in sub-report and draw the vertical lines in appropriate margins. Load the sub-report in the main window with its width tallies with the parent width. Test & modify the report again an again till you get the lines in the correct places. Moreover make sure you have checked on Print Repeated Values property for the line.
I've attached some reports I've created for my project, hope they can explain you well.
The Parent Report
The Sub-Report
The Final Output
If you really want to draw a line then just drag line element from palette and drag the bottom middle point of that tile element to increase the size and then decrease the width by dragging left middle point.

Crystal Reports columns in details band, change direction

here's what I am trying to accomplish:
I'm working on a single page report using Crystal Reports 2008, and at the bottom right corner of a page, I have a subreport that puts 1/2" square bitmap images in details-band columns that might print one image, or up to five horizontally. Right now, they print left to right.
What I would like to do is have them start from the right side of the subreport, i.e. the first image in the right corner, and additional ones print to the left. Is there a way to make this happen? I've tried changing Section Expert > Details/Layout > Printing Direction between the options "Across then Down", and "Down and Across", no luck with that.
thanks in advance
I was able to get this approach to work:
create a subreport that contains the image in the Details section. Add a suppression formula to the Details section that reads: RecordNumber<>1;
hide all sections but the Details section
size the subreport to fit the image (1/2" width)
move the subreport to the right edge of the relevant section
link the main report to the subreport
right click the subreport and save it to your Desktop
insert a subreport and choose the one that you just saved
size it to fit the image and move it adjacent to the first one
edit the subreport, hide the non-Details section, change the Details' suppression formula to RecordNumber<>2
repeat steps 5-9 for the remaining 3 images (changing the suppression formula)
The idea is that each subreport retrieves all of the image row for the related row in main report. you suppress all rows in each subreport but the one that you want to display.