Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print on the same page 1

Status
Not open for further replies.

pnad

Technical User
May 2, 2006
133
US
Hello,

I use Crystal XI.

I have several detail sections, but no group sections.

The report looks like this:

RH
PH
Details a-z
Details aa-ar
RF
PF


There are certain sections that I want to print continously witout starting on the next page. I've tried messing around with the keep together of the details section and the subsections but have not found a solution yet. Is there perhaps some sort of programming I can do behind the scenes to fix this problem.

a specific example is the details i section. It prints the the label within the detail section on one page and then prints the next field on the next page. I want it to print what it can on the current page and continue on the next if need be.

Thanks.
 
Why can't you use groups, if the details are associated? They can be set to 'keep group together'.

Failing that, you could do some sort of line count using variables.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
The reports are inherited so I am not sure if I can change them.

How do I use line count to control grouping/printing - I dont think that I follow.
 
Sorry, that is two different methods. I should have been clearer.

You'll find 'Group' under 'Insert'. Maybe do a small test report to get used to its functions, or a test version of the report you are trying to change.

A line count is where you do your own count for the number of lines you think each section will take, re-setting in the page header. Should be an example if you use SEARCH on this site.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
I searched the site but could not find anything. Could you point me in the right direction, please?
 
There is no 'line count' as such in Crystal. Even the page count is known only at the end of the run. But using variables, you can get the same effect.
In the page header, clear away values from the previous page:
WhilePrintingRecords;
NumberVar LineCount :=0;
Inlcude a 'line count' in each header and detail section; make your own estimate of how many lines that section it is equivalent to
WhilePrintingRecords;
NumberVar LineCount := LineCount + 2;
Check the value of the variable in a Formula field, {@Lines_Done}
WhilePrintingRecords;
NumberVar LineCount;
Check for the Page Before option, so as to move to a new page when there will not be enough room. E.g.
{@Lines_Done} > 50
Or something like
{@Lines_Done} > 50
or
({@Lines_Done} + {@Acc_Count}) > 50
This depends on @Acc_Count being a summary total.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Thanks, Madawc for all your help ! I will try this out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top