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

Print page footer only on first page?

Status
Not open for further replies.

CraigBest

Programmer
Aug 1, 2001
545
US
How can I tell a report to print the page footer ONLY on the first page of a report?

Also, is there a way of determining at the bottom of the page if the details section is still being written of if you are in the group footer section? How can I use this to show or not show a text field that says "Additional details on following page"?
 
In the conditional suppress of the PageFooter

Pagenumber <> 1 should do it

As far as being at the bottom of a page that is not easy. Crystal itself doesn't indicate position on a page.

In desperation (because of awkard pagesplitting) I created a line counting formula(s) which had each line type with the amount of inches that that line would approximately use

Eg. A detail line might use .75&quot; whereas a header line would use 1.5&quot;

I then sprinkled these different formulas suppressed on their appropriate section...summing the values...being reset when on a new page.

then in the &quot;new Page Before&quot; at critical points...eg. the start of a major header...I would split to the new page if a sum was >= a certain amount. What would this value be? Well I would display the valeus first and veiw the reults to obtain an optimum for the report then suppress the displays.

It is tedious and reserved for the &quot;Absolutly-must-be-perfect-as-possible&quot; reports

But it worked

Jim
 
Jim, thanks, your formula did the trick.

I was afraid of the second part. I may be able to get around it by including a line that says, &quot;Additional details may be listed on subsequent pages&quot;. If I can do that I will be OK. I wanted to show a message on the first page if the details section spilled over onto one or more additional pages.
 
Okay, I got the page footer to print only on the first page. But I have three more pages of legalese text that need to print after the first page, and now the page footer takes up the same space on every subsequent page, even though it doesn't print. I get 3-4 inches of blank page at the bottom of every subsequent page.

Any way I can fix this?

Craig in NJ
 
did you place the formula : Pagenumber <> 1

In the conditional suppress of the Page Footer section expert or in the suppress of the fields within the page footer.

I think you put the conditional suppress in the fields

As far as the Additional Details warning.

do you split to a new page often to start the terms part on a fresh page?

perhaps we can set a flag and place this in the footer suppressed

@DetailAlert1
WhilePrintingRecords;
Numbervar Alert := 2;

place this next flag in the details section

@DetailAlert2
WhilePrintingRecords;
Numbervar Alert := pagenumber;

now create a subsection of the page footer and then place the normal page footer in PageFooter(b) and the following text field in the right cornor of PageFooter(a)

&quot;Additional Details on subsequent pages&quot;

in the conditional suppress of the PageFooter (a) put the formula

WhilePrintingRecords;
Numbervar Alert ;

Alert > 1;

this will suppress this subsection once you are over 1 page or you are on page 1 but finished all details

Hope this helps

Jim
JimBroadbent@hotmail.com

 
Hi Jim

Nope, set it up just as you suggested, in the Section options. Checked the Supress checkbox, inserted the formula into the formula editor. Works great on the first page, but each subsequent page has a blank sections near the bottom same size as the page footer.

I will look at your suggestions regarding additional details and get back to you. Thanks again.

Craig in NJ
 
take the check off the suppress but leave the formula in the conditional suppress...that may be the prob...
 
Hi Jim

Tried your suggestion, did not help, still have large white space at end of subsequent pages.
 
Is it because of the other fields having &quot;Keep together&quot; checked in the format editor...or perhaps &quot;Keep together&quot; checked in other sections in the Section Expert....this isn't a page footer problem, I don't believe

Jim
 
Nope, I wish it were 'cause I'd be done. :)

All sections and fields have had any &quot;keep together&quot; settings turned off and it makes no difference. The Page Footer sections have &quot;keep together&quot; automatically turned on and I can't turn that off (system-disabled).

Any more ideas? I'm so close...
 
I think I know the cause...we have 2 sections to the page footer...don't we?

Now we have 2 situations

1. where the details are all on page 1 and the terms follow on subsequent pages

2. where details split across 2 pages and then the terms follow on subsequent pages

let me ask you this....If the details split across 2 pages, do you want the footer on the first and second page??

See...in the Section expert for a given section there are conditions that can apply to the complete section (in this case our Page footer) no matter what (ie. they over ride the subsection conditions sometimes) and then we have conditions that apply to individual subsections themselves

We may have a conflict...or not set them up properly...

Please answer the senarios I mentioned above

Jim
 
Jim, thanks for keeping up with this.

<< I think I know the cause...we have 2 sections to the page footer...don't we? >>

Yes. One that has a few text items (signature lines) and a paragraph of legalese that must appear on the first page, and a second that shows the recipient name (Vendor copy, File Copy, etc.) and the page number.

<< Now we have 2 situations

1. where the details are all on page 1 and the terms follow on subsequent pages

2. where details split across 2 pages and then the terms follow on subsequent pages

let me ask you this....If the details split across 2 pages, do you want the footer on the first and second page?? >>

No. What I want to have is the first page footer (PF1) print on the first page only, and have the Second (PF2) print on all pages. If the details spill over from the first to the second page, the page 1 footer should still print on page 1 but not subsequent pages. After the details print, there are about 3 pages of group footer, all one text item (many paragraphs of legalese), that print following the details. It's this group footer that's not reaching the bottom of the page on pages 2+.

<< See...in the Section expert for a given section there are conditions that can apply to the complete section (in this case our Page footer) no matter what (ie. they over ride the subsection conditions sometimes) and then we have conditions that apply to individual subsections themselves

We may have a conflict...or not set them up properly...

Please answer the senarios I mentioned above >>

There you go. Hope what I've written makes sense.

Craig in NJ
 
What about the &quot;Additional Details on subsequent pages&quot; comment...where would that come in??
*********************************************************
You want PF1 on just the first page so in the conditional suppress for JUST this section put the formula (I think this replaces the Conditional suppress we had before)...if it doesn't then this below in PF1 should be the ONLY conditional suppress on ANY section of the Page Footer...including the overall PF settings

WhilePrintingRecords;
Pagenumber > 1;

*********************************************************

Now you could put a text field in the PF1 saying

&quot;Additional Details on subsequent pages&quot; and in the conditional suppress of just that field you could put

WhilePrintingRecords;
Numbervar Alert ;
Numbervar Alert <> 2;

This would not show this field if the details didn't split over 2 pages...on subsequent pages it won't matter because the entire section PF1 will be suppressed.

*********************************************************

As far as PF2 goes...you don't touch any suppress since you want this on every page.

Hope this works now
Jim

 
Jim,

Main Page Footer section = no restrictions (Except system-controlled New Page After setting).

Page Footer 1 (PF1) = no restrictions except The conditional formula placed in the Suppress option, as you wrote it:

WhilePrintingRecords;
Pagenumber > 1;

No restrictions in PF2.

Still can't get Group Footer to print below reserved area for PF2 on subsequent pages (>1), even though suppressed section doesn't show.

Feeling very frustrated... Not your fault, of course, I wish they didn't want to do it this way, it would make my life so much easier.
 
I think I know what the problem is...it happens every now and then when Crystal changes pages in a footer. It seem to forget which page it is on.

Are you generating more than one contract at a time?

&quot;After the details print, there are about 3 pages of group footer&quot;

WHich group is this in?? I am having trouble imagining your report structure...is this in the group that splits to a new page if it starts on page1??

Layout the structure in detail for me .... ie:

Group1H - (based on what?...suppressed or not...)
Group2H - &quot; &quot;
...
Details
...
Group2F - (what is printed suppressed or not, on page 1?)
Group1F - (what is printed suppressed or not, on page 1?)
Page F1 - (what is printed suppressed or not, on page 1?)
Page F2 - (what is printed suppressed or not, on page 1?)

I don't seem to have the complete picture. lay it out in detail.

Can this automatic legalese not go into a report footer that can be several pages long?

or perhaps we can create a dummy group...is there anything else in this Group footer?

If not then surround this group with another &quot;dummy group&quot;

create a formula

@dummy_Group

If 1 = 1 then &quot;Legalese&quot;;

Crystal will accept this since it doesn't know what the value is until it is run...then it sets the group to a constant.

Place your legalese in the footer of this group and suppress the header. In the section expert for this footer do a conditional &quot;New Page before&quot;

WhilePrintingRecords;
Pagenumber = 1;

Give me a complete detail of the layout...ok

Jim


 
Hi Jim, I'm Efrain i wanna thank you too, your formula did the trick. It works on a Page header suppress.
Appreciate.
 
Hi Jim

It's been a while, and since the thread came up again (thanks to DigitalQuatro) I thought I'd get back to you on it.

For the most part your suggestions worked out well. eventually took out the two Page Footer sections and made it one PF section with the Signature block, and moved the 20&quot; text box of legalese to the Report Footer section. This was done after the first time I tried to print a report that had more than one page of details, and the report had a complete cow.

Moving the large block of text to the report footer section sems to have had exactly the results I wanted. All of the other difficulties went away, pretty much.

Just wanted to thank you again for your help, it was really important to me and got me through a rough spot, to where I could figure the rest out for myself.

Craig in NJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top