Adding 2 additional pages to the end of a crystal Report - crystal-reports

I have a report for orders and i would like to add 2 pages at the end of the order. My order is most of the time 1 page, sometimes it will be 2 pages. So I want to add my terms & conditions to the end of it. This terms&conditions is always 2 pages.
I tried to add a text object in the report footer. Than in Section Expert, I select Report footer --> and Check the New Page Before ( I also tried it with the New Page After)
I also suppress the sections that I don't want to appear on the 2 last pages by using : PageNumber > TotalPageCount - 2
As far as this all works, but if I open my report. On the second page of the report you see the beginning of the terms&conditions. On the third page of the report you will see also de terms&conditions. But the second portion of the first page, of the terms&conditions, is also on the second page of the terms&conditions. therefore, there is always a part of the text that is duplicated
For example: my example of terms&conditions exist of 14 points. On the first page of the terms you will see point 1 to point 8. on the second page you will see point 6 to point 10. and on the third page you will see point 9 to point 14
--> Thats very annoying!!
I also tried it to check 'Suppress if duplicated' --> but nothing is changing??
Can someone help me with my problem please??

Place the terms and conditions in sub report and place that sub report in report footer

Related

Two different pages with distinct headers and footers in crystal reports

Right so I'm fairly new to this crystal reports thing and i've been stuck with this for days and can't get my head around it!
i have to produce a report which contains two pages - 1. purchase order and 2. receiving note
report 1. has its own
header
detail
footer
report 2 has distincts header, detail and footer.
the only way i managed to make this happen was to use subreports but they only work in 1 level deep so having the addresses in subreports themselves i can't use this!
Now ive tried creating new groups and all of that but i cant get it to show in different pages
right now i have
header1
header2
details1
details2
footer1
footer2
any ideas of what could i do please?
If you know that page 1 and 2 are always page 1 and 2 (and a page 1 doesn't spill over into the 2nd page pushing the original 2nd page out to the 3rd page) then you can use a formula to change the header based on the page number. Create a new formula and then you can do something like this:
Basic Syntax
If PageNumber = 1 Then
formula = "This is the page header for page 1"
ElseIf PageNumber = 2 Then
formula = "This is the page header for page 2"
End If
That said, I probably would probably stick to using sub reports and use the report headers in those reports to display your unique headings. Using the section expert you can make sure that there is a page break between the two sub reports.

In SSRS How not to split same column on 2 pages

I have 20 columns on report. We have provided user to exclude columns which don't want in report. So we made hidden.
Problem is when I get report then any last column on page gets appeared some part on 1 page & some part on another page.
Can you please help.
hi i hope i understand your question correctly. you want to avoid page breake for a tablix? mark the tablix go to properies and check the PageBreak Options for me tDisabled = True works to render all informations in one page.
if it is still not working check your pagelayout in report --> report properties
also i remember there was a InteractiveHeight Option somewhere that should be set to 0.

ActiveReports 7 TextBox/List Page Break

I'm new to ActiveReports 7, I have a rdlx Report using a stored procedure to populate multiple lists with TextBoxes. The data is appearing correctly, however I am unable to get the TextBoxes to break when their contained data exceeds the length of the page. Instead, the TextBox remains unbroken and starts on the next page leaving a large empty gap. I have the containing Lists' 'KeepTogether' property set to 'False' and it doesn't help. How can I make these Lists and/or TextBoxes break at the end of the page and resume on the next?
Check the type of report you have. There are the "ActiveReports 7 Page Report", aka FPL (Fixed Page Layout) report and the "CPL Report" (Continuous Page Layout).
Fixed Page Layout is for creating a new page for each record. Suitable for invoices and similar reports. You need a "CPL report" so that it only adds pageas as needed for the content.
To get a CPL Report take the following steps from inside the designer in Visual Studio:
Project > Add New Item
Choose the "ActiveReports 7 Page Report" item here.
Choose Report > Convert to CPL Report.
Those steps should effectively have the effect of changing "Page" to "Body".
Below are the steps I used to create a CPL report that has a list with a textbox containing very long text (longer than a page) and it renders across pages okay:
Add a list
Add a textbox to the list. The default properties should work fine, but the relevant properties on my textbox are:
TextBox.CanGrow=True
TextBox.WrapMode=WordWrap
List.KeepTogether=False: Although technically this should be fine either way if the textbox/list are larger than a page. KeepTogether=False will just prevent it from moving to a new page if it is starting half way down the page.
Let me know if you still don't crack it and I'll upload my test report here somewhere for you.

Formatting a Second Page of Details

This is a problem I've managed to come up with a semi-solution for in the past, but I thought someone else might know better.
I have a report in Crystal Reports 10 that is used as an order summary form for a production area. We have standard products that only have one item per code, and then we have kits. A kit will have one primary item, and a secondary item, both of which need their own page in this summary as they go to different areas.
To accomplish this I've taken the normal details area from the report and made a copy of each section. This second set of details sections only shows when a record contains a kit, and they force a new page before them. To the average observer this makes it appear as though there are two separate items on the order, when in reality there is only one.
In my page header there is a flag that needs to show only on these secondary pages. My problem is that there is no special attribute for these second pages that sets them apart from the first page of a record. To make this formatting happen I've created a somewhat effective formula, but it doesn't work in all possible configurations.
The formula is:
(PageNumber = 2
or ({%kit count} = 1 and (PageNumber - 1) = RecordNumber)
or ({%kit count} > 1 and (PageNumber -2) = RecordNumber)) then false
%kit count is just a formula that gets a total count for kit codes in the report.
Currently this works only on a few specific cases. I'm sure there's some kind of pattern in the available values that I could work with, but I'm just not seeing it.
I need to be able to trigger this formula on every second page on a kit. How can I accomplish that?
EDIT: Screenshots as requested. (Brace yourselves)
(Original at http://cl.ly/392f033Y131e3r0l100V)
(Original at http://cl.ly/2x1D0t0W0S0j0F0h0S28)
It's quite hard to fully understand what you're trying to do without a discussion. Here is the solution to what I think you want to do with some made up data:
OrderNo Line Kit Rush
1 1 a 0
1 1 b 0
1 2 NULL 0
1 3 NULL 1
1 4 NULL 1
I create a group based on a formula (pretend OrderNo and Line are varchar so I don't have to cast :)
if {Rush} = 1 then
{OrderNo} & '-Rush'
else if isnull({Kit}) then
{OrderNo} & '-' & {Line}
else
{OrderNo} & '-' & {Line} & '-' & {Kit}
Then in the group header I place all of the stuff you currently have in your page header and enable Repeat Group Header on each Page.
Then finally put my detail in.

Insert page breaks between report groups with two-sided printing

In group expert options I have set Keep Group Together, which makes sure a new page is set.
With two-sided printing enabled, how can I make sure that a new group always forms on a new sheet of paper? Can this be done in the formula expert? Is there some way of checking if the page I'm on is even or odd and insert a page from there? Just asking leading questions because I'm not familiar with what is possible with Crystal's formula editor. BTW, This is Crystal XI Enterprise Server.
You can do this with the onfirstrecord, pagenumber and the onlastrecord keywords.
On the group header section "New page before" formula...
not onfirstrecord //so every group (except the first) starts on a new page
On "New page after" formula...
//to keep the group from starting on even page but make sure the last page is not blank
remainder(pagenumber, 2) = 1 and not onlastrecord
Open the Section Expert screen. Select Report Header and check "Suppress (No Drill-Down)". Then select in the group header select the group you want to page break and check "New Page Before".
This Works fine if I need Page Break on one Group. How do I do if Page Break on Multiple Groups?
I found answer..
Using Next(Field) or Previous(Field), I added below condition and worked fine.
In Next Page Before formula:
Not onFirstRecord and ({table.field} <> previous({table.field}))
hi IronicMuffin i understand you question. the answer is versy simple but more effetcive.
step 1: Include dataset or database expert into your crystal report
Step2: In the outside surface of the report area right click and goto report and goto group expert
Step3: add the which field you include the group that time the bottom of the window options will appear
Step 4: click the option and agian goto 2nd tab of the option.
step 5: finally check(check=true) check box of Repeat Group header on each page other check box or put uncheck