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

New Blank Page of Text after Group finishes

Status
Not open for further replies.
Apr 10, 2001
76
CA
Hi All,

I have Accounting Software MAS90 that uses crystal reports to produce invoices. We have a One Page Text "Terms of Sales" that we would like printed after each invoice. Currently the format is as follows

Page Header (Customer/Invoice Information)
Group Header (On Invoice Number)
Details
Group footer (Gives Invoice Totals)
Report Footer (suppressed)
Page Footer (suppressed)

I have created another Group Footer and instered the text we needed along with the command to print on a new page as the text is one page in length. The only problem is that the Page Header reprints on this new page.

I'm attempting to figure out how to suppress the printing of the Page Header for this page only. Any Ideas ?
 
Use a formula as a flag:

In the X 2 next to Suppress in the Page Header:
whileprintingrecords;
boolean NoPageHeader

Page footer formula:
whileprintingrecords;
boolean NoPageHeader:= false

The first Group Footer section:
whileprintingrecords;
boolean NoPageHeader:= True

Should get you close.

Also if there's only one page per invoice, then you don't want a page header on every page divisible by two, so you can just use a suppress of the page header based on the page number, as in:

whilepringingrecords;
int(pagenumber/2) = pagenumber/2

-k
 

Hi K,

You are right it is close. The headers do disappear, but the space remains "reserved" is there a command to suppress the space reserved for the header and details for this page ? Is a sub-report a possible workaround ? Or will the Header space still be reserved when it issues the new page command ?

Also would it be easier (although possibly slower) to call an external program (Adobe Acrobat) and print a PDF file at this point ? I'm thinking of using a sub-report.

Thanks Michael
 
You should be using the suppression formula in the section expert->page header->suppress->x+2, not in the format field->common->suppress->x+2 area. When suppressed, the page header should disappear in its entirety.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top