Solved

crystal report

Posted on 2000-04-04
6
229 Views
Last Modified: 2010-05-02
can you tell me how to determine the number of detail that will be printed in my report before it will be print a new group header ?. Example : i want to print invoice with Crystal Report. Every 25 detail it will print a new group header.
0
Comment
Question by:hotbc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Accepted Solution

by:
Voodooman earned 25 total points
ID: 2684810
Hi!

You can do this by inserting a section above the detail on every record and inserting the group header fields and then formatting the section to be suppressed using a bit of modular arithmetic

Your formula counts the records and every 25 shows the header

Use this

remainder(RecordNumber,25)>0


This absoulutely works


Good Luck


Voodoman!

0
 

Expert Comment

by:AshokKumar
ID: 2686673
Here it goes friend. Insert a new formula in Details section with variable say intRecordCount. Add a new formula in Header section and in that formula give intRecordCount = 0. (Initializeing the vaiable in the formula to 0 in the header section.)

Now for each record, keep on incrementing intRecordCount by 1. Check if it is exceeded 25. If exceeded do whatever u want (either suppress the record or whatever u need to do).

This would surely work for we have worked like this. As the variable will automatically be reinitialized, everytime, the detail section will print only 25 records or less.
0
 

Author Comment

by:hotbc
ID: 2687190
vodooman and ashokKumar's have a similar idea but i need more help.

in "page header", i made a formula that declare a variable, example :

numbervar myVariable := 0;

then in "detail" i made a formula again that increase myVariable by 1, example :

numbervar myVariable;
myVariable := myVariable + 1;

then i go to preview report and i can see that myVariable value always : 1.00, Can you tell me why ?

And if the problem above is solved i have to go to the format section on Group / Page Header and mark "New Page After" and click the icon on the right
and write :
numberVar myVariable;
if myVariable > 25 then true else false;

Am i right ?






0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:darinw
ID: 2748749
Community Support has reduced points from 50 to 25
0
 
LVL 3

Expert Comment

by:darinw
ID: 2748750
Hello all,

Reducing points to one half to allow for split.

You can now accept one of the comments in this thread as an answer. To award the other Expert, you can create a new question in this topic area with a title of 'For ExpertName -- 10322680' using that Experts username and assigning 25 points to it.

Remember, the Accept Comment as Answer button is in the header of the comment.

darinw
Customer Service
0
 

Author Comment

by:hotbc
ID: 2765012
thanks a lot. Sorry, i for long respons. Thanks
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question