Pregunta

Ok, first, here's what I'm trying to accomplish: I am trying to append a "Terms % Conditions" section to a printout. I've done this by splitting the report footer up into several sections. The first section of the report footer contains the actual report footer data (dollar totals and that sort of thing). The others contain the terms and conditions stuff and are set to create a new page prior to each one. I have a page header set up, but I don't want all of it to print on the terms and conditions pages so I tried using a boolean variable to determine when the terms and conditions begins to print. Here's how: In the report header, I declared and set the variable as such:

booleanvar TermsStart;
TermsStart := false;

Then in the actual report footer (with the dollar totals) I set it to true because the report itself is done and all that's left is the terms section:

booleanvar TermsStart;
TermsStart := true;

Now, in the header sections I wrote the following to try suppressing the unwanted sections:

booleanvar TermsStart;
TermsStart;

It didn't suppress when it should have, so I printed out the TermsStart variable in several sections throughout the report and in every single place it prints false, even in the same section where I set it to true. The formula field that sets it true does actually print true, but the variable doesn't seem to change or somehow gets reset. Any ideas?

¿Fue útil?

Solución

It doesn't work that way. The reason it's not suppressing the header is because in the header section, the variable is still "false", whereas in the footer it is "true". So if you put a suppress in the header on the condition of "true", it will fail. I suggest that you try this maybe with page numbers instead. I'm not sure how your report is structured, but you can use TotalPageCount. A suppression statement like PageNumber <> TotalPageCount will suppress your Terms & Conditions until the last page, and PageNumber = TotalPageCount will suppress the Header on the last page.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top