[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



You can achieve by using two different headers defined
in the same report. You can specify name of the header
section like:

Begin-Heading  Size1
  name=HdMain
  ! Your code goes here
End-Heaeding

Begin-Heading Size2
  name=HdFirstPg
  ! Your code goes here
End-Heaeding
 
You can alter page header by Alter-Report
Heading=HdMain

OR OTher WAY is Just define one Heading section
whatever you have but before you start printing
heading on second page use follwoing command:

Alter-Report Heading-Size=#newSize

Thanks,
D Patel

--- nssvprasad <nssvprasad@ncs.com.sg> 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


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users