[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 dyanmically with different sizes
Sounds like a classic example of needing the ALTER-REPORT command. If you
have SQR 6.0 or higher, the syntax is....
ALTER-REPORT
[HEADING = t_heading_name]
[HEADING-SIZE = n_new_size]
[FOOTING = t_footing_name]
[FOOTING-SIZE = n_new_size]
HTH,
Don
On Fri, 10 Oct 2003, nssvprasad wrote:
> 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
>
-----------------------------------------------------------------------
Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com | "In the beginning, there was nothing, which exploded"
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users