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.
Related
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
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.
I hope some one must have dealt this situation before.
I have a crystal report and on that report I have different sections including headers ,detail and footer. I'm displaying parts related information on details section and description is one of the fields thats being displayed.
So now based on part's description(in detail section)I have to display some text on the page header. So I have to look for part's description for every single part ,and if even a single part has the given description out of all the parts I have to print a message on report header.
My assumption is to use conditonal suppress option at the page header section, but not sure how to check for values from details section at the page header level.
Any help will be highly appreciated.
Thanks
NAF
Here's the way I would approach it.
Create a formula which returns 1 when your condition is met- otherwise 0. For example:
if {table.field} like '*acid*' then 1 else 0;
Then your conditional surpression can sum your new formula- and if the result is 0 it will hide the message.
sum({formula}) = 0
If you want to display it in Report Header then i would use a SQL Expression to conditionally suppres the text you want.
The SQL Expression
(select count(1) from dbo.TABLE where description = 'my_description')
Then in the Suppress formula:
{?SQL_EXPRESSSION} = 0
I have a Crystal Reports question on suppressing different details sections, appreciate any help you could give.
I have 2 details sections, A and B, and I want detailsA to show only on page 1 and detailsB to show only on page 2, but I can't get it to work using conditional suppressing. For detailsA I suppressed based on the following formula:
if pagenumber = 1 then
formula = false
else
formula = true
end if
And similarly for the detailsB. But when I then go to print this, it only shows page 1 (with detailsA only), it doesn't print a page 2. How do I force page 2 to also print?
(by the way, I'm using Crystal Reports 10, in case that's relevant)
Conditional-suppression formulae:
//section a
PageNumber=2
//section b
PageNumber=1
** edit **
I suspect the following:
Suppression formula suppresses page 1.
Page 2 now is now page 1
Suppression formula suppresses page 1 (nee 2).
The easiest solution would be to enable 'force new page after' on details A.
I have to fix a report designed by Acive report and I am fairly new to this. The problem occurs after converting this report from frame work 1 to 2 .Nothing is changed but sub report showing the total count does not show up.
I have a main report(RptReport.vb) having a group containg 6 subreports in its footer(GrpFooter).
It Has:
Report Header
Page header
GrpPageNumbering
Application's Icon
Report Name and....
GrpTotal
Detail
GrpTotalFooter
subLevel5
subLevel4
subLevel3
subLevel2
subLevel1
subLevelSubTotal
GrpPageNumberingFooter
PageFooter
ReportFooter
RptSubReport.vb is the subreport which is designed to be used in all of these 6 subreports.
It has
GrpTitle
It contains the deign of titles
grpHeader
grpAlternate
detail
grpfooterAlternate
It contains the field that should be shown up
grpFooter
It contains the total sum
GrpTitlefooter
For subLevel1 to subLevel5 grpfooterAlternate.visible = true and grpFooter.visible = false and
For subLevelSubTotal grpfooterAlternate.visible = False and and grpFooter.visible = true
This sets dynamically.
When i run the report with different criterira I get different results.
Some times grpFooter in sub report show up and sometimes it doesn't. I guess it depends on the amount of data showing up in the previous subreports.
It is good to mention that this report used to work correctly but after coversion from framework one to 2, This problem occurs.
I debugged the cases that total sub report show up and the cases that it does not . Both goes through the same events.
Any Body had an idea? I appretiate your help.
Thanks,
merryca,
I don't believe there is any dependency on FW on rendering of reports. That being said, is it possible that you can send us a project that will help us understand what is going on here. Trying to debug the issue based on your explanation is little bit difficult.
Please email support#grapecity.us.com and we will get you some help immediately.
thanks
raji
Rajnish Sinha,
GrapeCity, inc.