Home > SQR > begin-footing – two different foot note in one SQC

begin-footing – two different foot note in one SQC

September 14, 2008 Leave a comment Go to comments

There was a need to put two different foot note in SQR Reports based on the page orientation (Landscape or Portrait). For this situation, we can creat one SQC using #if and PAGE_ORIENTATION variable defined in our standard setup01a.sqc, setup02a.sqc etc. The SQC lines are given below.

 #if {PAGE_ORIENTATION} = ‘PORTRAIT’
begin-footing 2
  print ‘Important Note: 1′ (1,1)
  !Add more lines as needed
end-footing
#else
    #if {PAGE_ORIENTATION} = ‘LANDSCAPE’
begin-footing 2
  print ‘Important Note: 2 ‘ (1,1) 
  !Add more lines as needed
end-footing
    #end-if
#end-if

This assumes that the main sqr report has included one of standard setup layout sqc like setup01.sqc or setup02.sqc which should have PAGE_ORIENTATION defined using #define.

About these ads
Categories: SQR Tags:
  1. No comments yet.
  1. November 7, 2008 at 8:38 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 39 other followers

%d bloggers like this: