Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8940

Re: Line Count in Crystal reports

$
0
0

Reports with no data don't show anything.  You have to have data to have a detail section print.

 

Are you expecting a specific number of lines on each page?  If so, here's how you might do it:

 

1.  Create a running total that does a count of records - like I explained above.  I'll call this {#RecCount}.

 

2.  Create the same number of blank details sections as you expect to have lines on the page.  Since it appears that you're looking for a set of lines, put a line in each one.

 

3.  Go to the Select expert and modify the Suppress formula (DO NOT check the Suppress checkbox!).  For this example I'm making a couple of assumptions: 20 lines per page and you're doing this at the end of the report, not at the end of a group.

 

Not OnLastRecord or {#RecCount} \ 20 >= 1

 

The second section would have this:

 

Not OnLastRecord or {#RecCount} \ 20 >= 2

 

And so on for each blank section.

 

Note that I'm using a backslash ('\') in this equation, not a forward slash ('/')  Where the forward slash is the operator for division, the back slash is the operator for "modulus" which is the remainder after dividing two integers.  This is what is going to get you the information about how many lines you need to display on the report.

 

-Dell

 

 



Viewing all articles
Browse latest Browse all 8940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>