Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi guys,

i have sql table which look like this

---------------------------------|
REC_ID | FID | TC | DESCRIPTION  |
-------|-----|----|--------------|
 1     | 1   | 1  | ABC          |
-------|-----|----|--------------|
 2     | 1   | 1  | ASD          |
-------|-----|----|--------------|
 3     | 1   | 2  | QWE          |
-------|-----|----|--------------|
 4     | 1   | 2  | OIU          |
-------|-----|----|--------------|
 5     | 2   | 1  | ABC          |
-------|-----|----|--------------|
 6     | 2   | 1  | ASD          |
-------|-----|----|--------------|
 7     | 2   | 2  | QWE          |
-------|-----|----|--------------|
 8     | 2   | 2  | OIU          |
---------------------------------|


i have create a crystal report for this.

so that, what i did is, i have created main report in that i have inserted
sub-report(to display all fid's).

now in sub report i have used 'tc' and 'description', now, distinct 'tc' should come each on one page(i mean, for tc 1 one page, for tc 2 second page, so on).

i want to write the formula for 'new page after' in the section expert.

crystal report, should look like this
page 1:
REC_ID | FID | TC | DESCRIPTION  |
-------|-----|----|--------------|
 1     | 1   | 1  | ABC          |
-------|-----|----|--------------|
 2     | 1   | 1  | ASD          |
-------|-----|----|--------------|

C#
<pre>
page 2:
REC_ID | FID | TC | DESCRIPTION  |
-------|-----|----|--------------|
 3     | 1   | 2  | QWE          |
-------|-----|----|--------------|
 4     | 1   | 2  | OIU          |
-------|-----|----|--------------|
</pre>


C#
<pre>
page 3:
REC_ID | FID | TC | DESCRIPTION  |
-------|-----|----|--------------|
 5     | 2   | 1  | ABC          |
-------|-----|----|--------------|
 6     | 2   | 1  | ASD          |
-------|-----|----|--------------|
</pre>


C#
<pre>
page 4:
REC_ID | FID | TC | DESCRIPTION  |
-------|-----|----|--------------|
 7     | 2   | 2  | QWE          |
-------|-----|----|--------------|
 8     | 2   | 2  | OIU          |
-------|-----|----|--------------|
</pre>



How to write this formula using tc column, can anyone plz help me...

Thanks
Posted
Updated 1-Jan-16 22:51pm
v7
Comments
jame01 3-Jan-16 15:34pm    
try to set break page ...
you can check it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900