[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Getting current setting of columns per page
Scott,
You should probably by using a #define variable in each of the layouts
so that you can refer to it when printing the text. For example:
Include file layout1.inc
------------------------
#define maxcols 75
declare-layout default
max-columns = {maxcols}
SQR Program
-----------
#include
begin-setup
include 'layout1.inc'
end-setup
begin-program
let #print_position = {maxcols} - 10
print ...
John L. Kellogg
Scott McCann wrote:
>
> Is there a reserved variable name, or any way to extract what the current
> number of columns are set to for a report?
>
> I want to develop a generic heading routine for all reports to look
> extactly the same and need to position some text X characters from the
> right side of the page. The declare-report in any of these reports could
> be using any number of pre-defined layouts.
>
> Thanks in advance,
>
> --_ Scott _--