[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Print Address upside down???
Here is a sample program that shows how to print text at 90, 180, and 270
degrees of rotation when producing Postscript output:
begin-program
do main
end-program
begin-procedure main
use-printer-type postscript
print '0 degree 1,1' (1,1) ! Print line at 0 rotation
print-direct 'statusdict begin' ! Rotate 90 degrees
print-direct '90 rotate'
print-direct '0 -792 translate'
print '90 degree 1,1' (1,1) ! Print four lines rotated 90 degrees
print '90 degree 2,1' (2,1)
print '90 degree 3,1' (3,1)
print '90 degree 4,1' (4,1)
print-direct '-90 rotate' ! Rotate back to 0
print-direct '-792 0 translate'
print '0 degree 2,1' (2,1) ! Print line at 0 rotation
print-direct '180 rotate' ! Rotate 180 degrees
print-direct '-612 -792 translate'
print '180 degree 1,1' (1,1) ! Print four lines rotated 180 degrees
print '180 degree 2,1' (2,1)
print '180 degree 3,1' (3,1)
print '180 degree 4,1' (4,1)
print-direct '180 rotate' ! Rotate back to 0
print-direct '-612 -792 translate'
print '0 degree 3,1' (3,1) ! Print line at 0 rotation
print-direct '270 rotate' ! Rotate 270 degrees
print-direct '-792 -180 translate'
print '270 degree 1,1' (1,1) ! Print four lines rotated 270 degrees
print '270 degree 2,1' (2,1)
print '270 degree 3,1' (3,1)
print '270 degree 4,1' (4,1)
print-direct '90 rotate' ! Rotate back to 0
print-direct '180 -792 translate'
print '0 degree 4,1' (4,1) ! Print line at 0 rotation
print-direct 'end'
end-procedure
John L. Kellogg
MITI Technical Support Manager
Ben Le wrote:
>
> Hi there,
> Are there any SQR experts out there please show me how to print something
> upside down in SQR? Our users want to have the student schedule/bill
> address shows upside down for folding and stuffing purpose. The other
> information prints normal just the address.
>
> exp:
>
> STUDENT SCHEDULE OF CLASSES
> ........
> ...........
> .................
>
> Ben Le \
> The White House \ This needs to print upside down (turn
> around)
> Washington D.C. /
> The United States of America /
>
> I would appreciate for your help. Thanks.
>
> Ben.
>
> ----------------------------------------------------------------------
> Benjamin Le Phone: (503)-977-4970
> Portland Community College, ITS Fax: (503)-977-4987
> System Development, Sylvania Campus E-mail: ble@pcc.edu
> PO Box 19000 Portland, OR. 97280-0990 U.S.A. http://www.pcc.edu
> ----------------------------------------------------------------------