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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page header repeating on next page 1

Status
Not open for further replies.

shankarpatil

Programmer
Feb 5, 2001
25
US
I have a report which prints detailed customer information. It has a header,details and a footer section.the header section consists of customer number,address etc. And the details section consists of the purchases made by that customer.
Whats happening is for some customer the header information is repeated form the previous customer header and the details and the footer information is correct.
e.g. for customer 2 the header information(customer name,Number,customer address ) for the customer 1 is displayed and the details, footer is of customer 2.
I observed that this happens on a machine with different resolution.

I have a workaround for this problem ..I increase the header hieght whenever I encounter this problem.I am looking for a permenant solution.Please help me.

Crystal 8.00
VB6
Windows NT workstation
database: DB2



 
Is this happening when the groups (I assume when you say "header" you mean "group header" and that when you say "footer" you mean "group footer") occur on the same page? -- e.g., group one's header information gets repeated in the next group header if the next group header appears on the same page as the group one. There are a number of ways to get around this, but you should not have to use any of them.
 
Putting fields into the page header instead of the Group Header may be the problem.

Using the wrong printer driver for that printer, or using a font that this printer doesn't support could also cause the report to measure the sections inaccurately.

What are the group fields in this report?
Where are the page breaks located? Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Sorry for the confusion about the header.What I meant by header is the page header.
 
Are there groups in this report? What fields?
Where are the page breaks located? Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Thanks.
Yes there are groups.The grouping is on the customer number and purchase number(inner one)
The page break is on customer number footer(One change of customer number new page starts).
 
Here is what I would try. Take all fields in the Page header, and move them to Group Header #1.

If you want this header to repeat on every page, go into the change group expert, and set the options "repeat header on each group". Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Thanks.
Is there any other way without doing that.Because I am printing this report on a pre-formatted ,pre-printed form.I need to change a lot of alignment and go through a lot of testing, if I move the fields from the page header to group header.
Can you tell me why is this happening?
 
I am not sure. If you have your page break on GF1, and use NEW PAGE AFTER, then the page header should correspond with the group. Check this first.

Sometimes people use the wrong check mark (New Page Before) or do other odd things, that can get the old group carrying forward to the top of the next page. Much less likely to happen with a group header. Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
I have moved all Page header fields to GH1.This works fine.
But as you said, sometimes the old group header is carried to the top of next page.
Please let me know?
 
Go into the change group expert, and see if you have "repeat group header" checked for this group. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Now I am increasing the header hieght whenever I encounter this problem.I am looking for a permenant solution.

Can any one guess why this problem is happening, by the solution used(increasing the group header hieght).

 
At this point I am stumped. I would have to see the report, a level of service reserved for my customers. Wish I could be of more help. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top