[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: SQR last-page problem



Terry,

One way of doing this would be, if you could store the report2 data into an
ARRAY until report1 is finished. You could initialize #page-count variable
to the  correct page number and give the print statement taking data out
from array.

Hope it helps you..
-alok

On Wednesday, November 11, 1998 6:57 AM, Terry Cheung
[SMTP:Terry.Cheung@BMG.CO.UK] wrote:
: Hi,
:
: I am using SQR v4 for UNIX environment.
:
: I need to print out a single document consists of two different report
: layout. So I used 'use-report' to print the output onto the different
: report layout. The problem is I need to have "page <current-page> of
: <last-page>" on every page of this single document. With 'use-report'
: it will resets the <current page> to whatever page the report is
: currently on and it will also have two <last page> instead of one
:
: What I need is one continous sequence of current page and last page
: across two different report layouts because they afterall one document.
: I could program my own logic to work out  the current page, but what
: about the last page?
: SQR prints out the page on the fly and there is no way of delay printing
: it or is there?
:
: The current method I could think of is to insert a '@@'  in each page
: and then after the report is produced (I will have the last page value).
: Using UNIX commands to search and replace the '@@' with the last page
: value. But I feel it is not a neat way of doing it - does any experts
: out there have any insight??
:
: Please advise
:
: Many thanks in advance
:
:
: Terry Cheung - Bertelsmann mediaSystems
: BMG Distribution, Unit 24 Crystal Drive, Warley, West Midlands, B66 1QG,
: United Kingdom.
: * terry.cheung@bmg.co.uk
: * terry.cheung@bertelsmann.de
: * Tel: +(44)-121-543-4276