[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Multiple Headings
- Subject: Re: Multiple Headings
- From: Juan Alvarado <juan@GYSSA.COM.GT>
- Date: Tue, 25 Aug 1998 15:11:43 -0600
I think that is best if you use the parameter FOR-REPORT in the Heading
section.
For Example:
begin-heading for-report=(report0)
STUFF
end-heading
begin-heading for-report=(report9)
STUFF
end-heading
begin-heading for-report=(report1)
STUFF
end-heading
I hope this help you
Juan Manuel Alvarado
CPS-DBA Sybase XI
Gerencia & Sistemas Guatemala
www.gyssa.com.gt
> -----Original Message-----
> From: David Anderson [SMTP:DANDERS1@SMTPGW.IS.HFH.EDU]
> Sent: Tuesday, August 25, 1998 2:05 PM
> To: Multiple recipients of list SQR-USERS
> Subject: Multiple Headings
>
> I have a program that produces two reports requiring different
> headings.
> I have setup two kinds of reports:
> declare-layout Default
> paper-size = (11, 8.5)
> orientation = LANDSCAPE
> top-margin = 0.5
> left-margin = 0.05
> max-columns = 177
> max-lines = 58
> char-width = 4.32
> line-height = 9
> end-declare
>
> declare-printer HPLaserJet
> type = HPLASERJET
> font = 0
> point-size = 6
> pitch = 17
> end-declare
>
> declare-report Report9 !Debug Report
> layout = Default
> printer-type= HPLaserJet
> end-declare
>
> declare-report Report0 !Dollars Report - Current Activity
> layout = Default
> printer-type= HPLaserJet
> end-declare
>
> declare-report Report1 !Hours Report - Current Activity
> layout = Default
> printer-type= HPLaserJet
> end-declare
>
> I then installed an evaluation statement in the HEADING section:
> evaluate #ReportNumber
> when = 9 !Debug Report
> stuff
> when = 0 !Activity Report - Dollars
> stuff
> when = 1 !Activity Report - Hours
> stuff
> end-evaluate
>
> Finally, throughout the program I use use-report Reportx to write to
> the
> correct report. However, if the report is only a page long the report
> uses
> the last #ReportNumber. What should I be doing?????????????