Sub reporting in CR9.Net

This problem belongs to unusual bevavior of sub reporting in CR9.Net. Let me explain it more clearly. I created a report say it "Report1.rpt". I inserted group into it and added conditional code in the event of "New Page After" at group header.

conditional code:

IF (RecordNumber MOD 6) = 1 THEN
  FORMULA = TRUE
END IF

This condition works fine when I run this report as a single independent report. Problem arises when I add this report as sub-report in an other report. In this case, condition doesn't work..ie. It dosen't jump to a new page according to this condition.

Please help me find soultion for this.

Regards,
LVL 2
talhaaminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

possekeCommented:
Hi talhaamin,

Have you checked the link between main report and subreport?
If master and child keys are not linked, the subreport will fail to receive the conditional 'answer'.

Po$$e
0
talhaaminAuthor Commented:
Dear,

Links are working well with the sub-report and so data in the sub-report are coming accordingly..but this is exception,that one specific condition,I have already mentioned, doesn't work..
0
possekeCommented:
Maybe you should try and put the conditional code on the section where the subreport is put. (on the master report!)
I have tried the same conditional code as yours in a new report, used it as subreport and it failed too.

But when i put the conditional code in the master report at the section the subreport could be located, it worked fine!

Po$$e
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

talhaaminAuthor Commented:
Posseke solution didn't solve my problem so i want to close this question and wants to reclaim my points.
0
possekeCommented:
Give talhaamin his points back if my suggestion didn't work, I have no problems with that!!

Greets,

Po$$e
0
talhaaminAuthor Commented:
Thanks for such a nice reply. On this answer i would like to gift you these points by accepting your answer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.