Remove pageheader ad page footer from crystalreport - crystal-reports

i must print a report from my application like this :
section1(reportheader)
section2(pageheader)
section3(detailes)
some data
....
...
....
section4(report footer)
section5(page footer)
in design area ,i set distance between section1 and section2 to zero,and between section2 and 3 and section 4 and 5 to zero too,but when i tried to print i got 2.2 cm gap from header and 2.2 cm gap from footer and my print messed, how do i remove this white spaces from my page?

In Design view Right Click on the section you need and Select "Suppress". So the sections you suppressed will not be visible in your report.
Try this and get back with your results.

i done this all,my sections of header and footer became gray, but nothing happened,for more information: my page size is h:42,30 V:55 and it has no margins. i checke off the noprinter .... and i chosed my printer model Epson LQ 2190 ESC/P2 my repoort is for a raw form that in every row it has five block that every bloak paced by some information ,my paper size is for five row of this blocks, still, now in my header's report i got 2.2 cm white space and after 4 row printing , i got 2.2 cm in footer and between row 4 and 5 i got 4.4 cm free space

Related

Fix Page Header Height in Crystal reports

Is it possible to fix the height of page header or any other solutions?
My problem is I need to do this list of persons in page header
Boy Janna
Girl Leo
Ana Erick
Mina Carlo
Lea Shena
But it must be like this
(for page 1)
Boy Janna
Girl Leo
Ana Erick
(next page)
Mina Carlo
Lea Shena
If number of person is 6 or lower it will only appear in first page (if two page report the second page must have blank person). If the number of person is more than 6 the number 7 person and up will appear to next pages and so on.
The maximum row is 3 per page
This Sub report is in Page header in main report
I put this code in supress of Sub Report for Persons. If I don't tick the Can Grow and adjust the text box (it only shows 6 names) and other names are now missing and not appearing in the next page. If I tick can grow and remove the below supression code what happens is it shows repeated name each page.
if PageNumber = 1 then
false
else if PageNumber = TotalPageCount then
true
else
true
Thanks in advance
yes you can do it in group header or footer and the process you followed won't give you correct results. Follow below process.
In grouper header or footer take a sub report and place only those fields in the sub report that you want to display.
In sub report place the field in detail section and then go to
Right click Details --> section expert --> paging --> tick the check box visible records
In the space provided input number of records you want to view per page and no go to preview.
You can see those many records per page in group.
This is working solution I tried group header and group footer of a group.
Let me know if you face any issue.

Different content in odd and even pages

I'm using Jasper iReports 5.2.0 and I want to print a list on odd pages of the report and a static text on the even pages.
To achieve this I created a report with my query of a list with 100 sequential rows and put it in the Detail 1 and my static text in Detail 2.
Then I added:
Print When Expression = $V{PAGE_NUMBER}%2 != 0 to Column Header and Detail 1
and Print When Expression = $V{PAGE_NUMBER}%2 != 0 to Detail 2
and also maximized Detail 2 Band Height (without this I will loose more rows)
Everything show in the right pages but report aren't showing all rows.
I mean, if my query return 100 rows, 1-100
1st page show 1-20
2nd page show static text
3rd page show 22-40
4th page show static text
5th page show 42-60
...
What should I do so that row be printed in the right page?
You should do the following:
Create 2 Detail Bands:
a) Detail1 - For static even pages (!make sure this detail band is first). Maximize it's size - to use whole page, put your static text on it. Set PrintWhenExpression = $V{PAGE_NUMBER}%2 == 0 on band
b) Detail2 - For your data, do not use any PrintWhenExpressions on it
How it works: wholepage DetailBand1 is shown only on even pages, because it takes whole page, your data detail band (Detail2) is moved to even page, so everything works as expected, and no records are missed.

Fix the size of details section in crystal report

I m using crystal report in vs2010.
I m generating Tax invoice report..in that, details section size is dynamic.
i.e. depend on number of records, it changes. so if i've 10 records the report view is full page that is k ..but if i have 2 records in details sections, then whole page footer section getting stick to details page..so whole alignment is getting change
Try changing the print at bottom of page property in the select expert. That should do the trick.
1)First of all fix height of detail section by right click on detail section ->section expert->New Page Before checked->beside button of (x+2) write formula(Suppose you want 7 records in per page and further on another page -> IF Remainder (RecordNumber, 8) = 0 THEN TRUE ELSE FALSE
2)under detail section (suppose section3) is your detail section then leave report section blank with needed space and else for footer put it in page footer .. i think this will solve your problem.. mine is solved..
In my case in the New Page Before checked add:
IF Remainder (RecordNumber, 18) = 0 THEN TRUE ELSE FALSE

How to reduce space in crystal report detail section?

I have a crystal report. In that I need to reduce much more space in detail section. how to do that?
I tried suppress method.but again it showing same problem. how to solve this ?
Here is my crstal report design and output samples
Here is output sample
while taking print it is showing more space . after first report entry , it is showing more space. indicated using next report in red line.
Here are a few ways:
align the top edge of each item to the top edge of each section
make the height of each item in each section equal to the height of the shortest item in that section; if you need any field to grow, toggle its 'can grow' property to checked
set each section's height to match the height of its tallest field
delete or suppress PageHeaderSection4 and ReportFooterSection2
does the Supplier ID and associated field need to be in its own section?

SSRS - Semi-Blank page when Tablix exceeds page1 space

My Title to this question is probably a little confusing, but let me try explain what happens.
Our company report template requires a header and a footer. The footer is displayed on every page, but the header should only be displayed on page 1.
To achieve this, we removed the header content from the report header and placed it at the top of the report above the Tablix. This produced the desired results, but we now have the issue where we get semi-blank pages.
Some background:
- The header of page 1 takes up about 5cm of the page.
- There are no overlapping controls on the page.
- InteractiveSize property: 21cm, 29.7cm
- Margins property: 1cm, 1cm, 0cm, 0.5cm
- PageSize property: 21cm, 29.7cm
Now lets say on page 1, there is X amount of space for the tablix data (Because of the header), but from page 2 to the end there is Y amount of space for tablix data.
The problem we get is when the total amount of data that should be rendered is between X and Y. The report then renders the 1st page with the header, but apart from that and the footer, the page is blank. Then on page 2, the Tablix will display the data.
If the amount of data is less than X or more than Y, then we have no problems; the report renders as expected.
Can anyone maybe point me in the right direction please?
Thanks
It sounds like the tablix's KeepTogether property is set to True so that when there isn't enough room on the first page but there is on the second page for the entire tablix, it then renders on the second page.
Set it False