[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Diffrent setups in the same report?
- Subject: Re: Diffrent setups in the same report?
- From: BELLARY <BELLARY@AOL.COM>
- Date: Tue, 27 Jan 1998 23:58:54 EST
- Organization: AOL (http://www.aol.com)
This is possible. But depends on the Printer type you use and may be the make
of the printer. Refer to the printer technical manual.
You should find the ESCAPE SEQUECE CHARACTER SET fot that printer which causes
it to change the orientation to Landscape or Portrait and use it accordingly.
Then in the sqr program assign this code to a variable using encode. Something
like this
encode <27>[uo..... into $portrait
Then , when you are ready to change the orientation , i.e before starting
printing last page, print this variable , using CODE , like this
print $portrait () CODE
Any thing printed after this should appear in portrait format.
See if this Help extract helps you. Good luck.
CODE | CODE-PRINTER
CODE is a qualifier which may be discontinued in a future release. Use
CODEPRINTER.
CODE-PRINTER is used to add non-display characters to the report for the
purpose of sending a sequence to the printer. CODE-PRINTER causes the string
to be placed behind the page buffer, rather than within it, so alignment of
printed data is not thrown off by the white space consumed by the non-display
characters. Only strings can be printed using CODE-PRINTER.
Since the report might be printed on different types of printers, you should
specify for which type this data is to be used. It will be ignored if printed
to a different type. If necessary, you can send a different sequence to
another type with a second PRINT statement.
If you use CODE, the sequence is assumed to be for the printer type specified
in the DECLARE-REPORT or default printer, if none is specified.
For example:
encode '<27>[5U' into $big_font
encode '<27>[6U' into $normal_font
....
print $big_font (0, +2) code-printer=lp
print &phone () edit '(xxx) xxx-xxxx'
print $normal_font () code-printer=lp
In the previous example, the two CODE-PRINTER arguments put the $big_font and
$normal_font sequences into the output, without overwriting any data in the
page buffer. Sequences printed with the CODE-PRINTER argument are positioned
using the regular line and column positioning. However, unlike the PRINT
command, the current print location after execution is the beginning location
where the CODE-PRINTER string was placed. Multiple coded strings printed using
the same line and column location appear in the output in the same sequence in
which they were printed.