[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] how to print headers and footers dynamically withdifferent sizes
Prasad,
if you have SQR 6.0 or later, you can use the new feature of ALTER-REPORT
command that allows you to change heading size. If you are using an earlier
version of SQR, I suggest you set your heading and footing to 20, then use
program logic to start printing on line 61 of page 1. Note you can print
past line 20 in a 20 line header - that will simply print down into the body
of the report.
Steve.
-----Original Message-----
From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On
Behalf Of nssvprasad
Sent: Friday, 10 October 2003 4:24 PM
To: sqr-users@sqrug.org
Subject: [sqr-users] how to print headers and footers dyanmically with
different sizes
i have the senario to print headers and footers dynamically.these headers
and footer are different sizes.
ex:-
header1 (heading-size=60)
header2 (heading-size=20)
footer1 (footing-size=20)
footer2 (footing-size=150)
header1 should print only in first page
header2 should print in all the pages except first page.
footer1 should print in all the pages except last page
footer2 should print only in last page.
i have done this by putting if condition in header and footer.
my code is as follows
Begin-Setup
declare-procedure
after-report=Rep_LastPage
end-declare
End-Setup
Begin-Heading {heading_Size}
if #page-count=1
do heading1
else
do heading2
end-if
End-Heading
begin-footing 150 for-reports=(report)
if #last_page=1
do footer2
else
do footer1
end-if
End-footing
begin-procedure Rep_LastPage
let #last_page=1
end-procedure
with this i am able to print header and footer as required.
but i need to set maximum size for both header and footer.
because of this page space is vasting.
i need to set header/footer size based on the content of header and footer.
how to achieve this
Pls help
Thanks & Regards
Prasad
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users