Re: REPORTS 2.5: HOW GOOD ARE YOU??

From: Eric Hartzenberg <eric_at_erichome.demon.co.uk>
Date: 1997/06/21
Message-ID: <z7+ovIACn7qzEwwB_at_erichome.demon.co.uk>#1/1


In article <33A6B58E.2B5D_at_trw.com>, Martin Bronstein <Martin.Bronstein_at_trw.com> writes
>Steve Chell wrote:
>>
>> Ok, all you Reports 2.5 experts:
>>
>> I have a report which prints invoices. The top
>> level repeating frame is R_INVOICE, each repetition
>> of which requires one or more pages. (ie each invoice
>> requires one or more pages.)
>>
>> I want to attach a format trigger to some objects
>> within this repeating frame to return true or false
>> depending the outcome of certain tests with respect to
>> the page number WITHIN the current repetition of the
>> repeating frame. Eg the report might be currently
>> formatting page 3 of a 5 page invoice. I want the format
>> trigger to identify that it's on page 3 of the current
>> invoice and determine the appropriate return result from
>> that, regardless of the physical page number with respect
>> to the entire report. Is this possible?
>>
>> (Background: I'm investigating the feasibility of printing
>> OMR marks on printed documents. The marks to print are
>> dependant on the page number within the current group.)
>>
>> Any help would be much appreciated.
>>
>> Steve Chell
>> slc_at_stevensons.co.nz
>
>Create a layout object with physical page number as the source. In the
>object's properties dialog, choose Page Numbering..., then choose the
>repeating frame on which to reset page numbering, i.e. R_INVOICE.
>
>Martin Bronstein
Not an expert, but here goes:-

If you need to test the page-number in the triggers, I don't think you can do it. At least, not directly.

What you can do is create objects & use the Print-conditions (under Properties-->General Layout). These objects can then include conditional code in their triggers which only fire on First-page, Last-page etc.

One awkward feature of this method is that some of the conditions (All- -First, All-but-Last) can only be used when the object in question is anchored to a frame. In this case, you also have to change the Printcondition  Object to 'Anchoring Object'.

I have an example .rdf if you require.

Alternatively, try the Between-Pages trigger. I haven't tried it, but it has to be of SOME use.


| ~~~~~~~~~~~~~~~~~~~~ | ERIC  HARTZENBERG | ~~~~~~~~~~~~~~~~~~~ |     
| Email    : eric_at_erichome.demon.co.uk   Compuserve  : 100073,21 |
| Homepage : www.erichome.demon.co.uk                            |
|________________________________________________________________|
 
Received on Sat Jun 21 1997 - 00:00:00 CEST

Original text of this message