Crystal Reports adjusting page header column width - crystal-reports

I have a SQL query resulting in about 20 columns. There is just the page header and the details section. Unfortunately the column descriptions (page header) are to big to be shown completely, therefore the width is smaller as it should be. Now I want the columns of the page header to be as big as necessary to show all the information.
When adjusting the column width manually and exporting the report to .xls the position of those descriptions do not match the columns of the detail section anymore.
I need the page header columns as wide as necessary and I need the detail section columns matching with the ph.
Solution: Adjust width of the report to the needed scale. To avoid doubled columns or rows in Excel just use "Export to Excel - data only"

Related

Tree template, 50 columns, getting error "the detail section, the page and column headers and footers and the margins do not fit the page height"

I am very new to jasper reports so please bare with me. I created a new jasper report using the "tree" template. I simply used a table that has ~50 fields (select * from mytable). Jasper reports created the report. I made no other modifications, whatever jasper studio generated is the fie I have. It seems to have a height of 1420px. The columns are on the left, the values are on the right. When I go preview the report now, I get the error message:
the detail section, the page and column headers and footers and the
margins do not fit the page height
I understand that there are so many columns, it is to large for the report, but do not know how to solve it. I would like the report to automatically start a new page whenever the data fills up. I do not know the exact heights these fields will have as it depends on how much text is inside of each, which depends what is stored in the database. How can I accomplish so that the report automatically starts a new page when it needs to?

JasperReport displaying

I have the following structure in my JasperReports, the table consists of:
set of text fields (as table's headers)
list (as table's rows)
However, when I export the report as *.docx format, list elements shrink to the left (as displayed in the 2nd picture), but I don't understand why.
How can I align the headers and the list rows?
The full source code at github:dezmontx

SSRS Double row headers and data display for printing

** I'm using SSRS2008 R2
I have a report that the users would like to see in a printable pdf.
Problem is there are several columns, potentially too many to fit on a printed 8.5x11 paper.
One of the concepts they suggested was a stacked header/data display, like breaking the columns into 2 rows, so 2 rows of data (for John and Bill) would look like this:
NAME START_DATE STATE COMPANY
ACCOUNT BALANCE END_DATE
-------------------------------------------------------
John 1/20/2016 NY GE
10076 $100.00 2/20/2016
-------------------------------------------------------
Bill 5/13/2016 MA Netflix
00013 $150.00 12/31/2016
-------------------------------------------------------
This leads me to 2 questions:
Is there a way to do this with a tablix?
AND/OR in addition, is there a way to set a default property on the report so when the report is exported to pdf and to print, that it defaults to fit all columns on one page (therefor shrinking the font size to fit on page?)
For anyone that cares - Apparently this can easily be achieved by dragging a Tablix onto the work area, right clicking the header row, adding a new row underneath (basically becomes header row 2), then do the same thing to the details row - however make sure to insert row - Inside group. That allows you to have stacked header and data rows and you can copy / paste headers and row values in whichever row you'd prefer.
it will work if you make all the columns on the same height not unequal. If all the columns has same height, then while exporting to pdf/excel and print it will come in the same page.

Best way to place some data directly below the "Detail 1 Bar" in jasper reports

I'm designing a report template using iReport tool.
The requirement is simply to have a table full of data and at the end (just after the last row of data) displaying the totals of that data.
So far I designed like below.
But I still don't know whether it's correct to put those data in Column footer or not.
And I'm using isIgnorePagination="true" so there won't be any pages but a single page of data with large amount of data records.
Is there any way I can have the pagination back. I can't remove the isIgnorePagination="true" because then there will be a gap between Detail Bar and Column Footer if there is less data to display and if there are multiple pages that column footer data will display for each page. (I need that totals to display just after the table data)
Is there any way to achieve this.
Usually the column footer will be set directly over the page footer, as you have seen.
The option Float Column Footer, if set to true, will let the column footer float directly under the detail bar and not anchored over the page footer (see more here).

Jasper Reports wide crosstab on multiple pages

I have a crosstab with many columns but only a few rows. When I generate the report the crosstab reuses the empty space below the rows from one page and renders the next columns for the same rows. This way several pages are compacted vertically on one page:
I want the columns from day 20 to day 27 (the second part of the crosstab) to be displayed on a new page not on the same page and leave that space empty.
The solution is to set the Column Break Offset property of the crosstab to a very high value such that it exceeds the page height. This way the report will continue on the next page.