[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Printing Verical Text in sqr using GhostScript notworking



You can't use HP escape codes with printer=ps. The sample code below works
with Postscript. If you want to use PCL, you'll need to user printer=hp, but
I can't vouch for whether that will work.

Hope this helps.

Ray

! Copyright 2004 Ray Ontko & Co.  All rights reserved.

begin-program
   print 'horizontal' (5,5)
   print-direct printer=ps '270 rotate'           ! Rotate 270 degrees
   print-direct printer=ps '-792 -205 translate'


   print 'vertical' (3,3)
   print-direct printer=ps '90 rotate'            ! Rotate back to 0
   print-direct printer=ps '205 -792 translate'

   print 'Horizontal again' (6,5)
   print-direct printer=ps '/Courier findfont [12 0 0 -12 0 0] makefont setfont'
   print 'Mirror Writing' (7,5)
end-program



On Fri, Apr 25, 2008 at 3:28 PM, Amechi Ezeasor <aezeasor@yahoo.com> wrote:

> Hi Guys,
> Somebody please tell me what I am missing here. I installed
> 1. ghostscript (gs854w32.exe) version 8.54
> 2. RedMon
> 3. gsview - gsv49w32.exe
> I then ran rotate_text.sqr from (http://www.ontko.com/sqr/) but my output
> did not match the output rotate_text.pdf. The word "Vertical" did not print
> vertical as show in rotate_text.pdf mine is horinzontal. I viewed it using
> both acrobate reader and Gsview with same result. so what else do i have do
> .
> I am trying to do multiplex printing which is working fine but my prblem is
> page 2 has to be either portrait or printed vertically. Page 1 is perosnal
> info page 2 is address.
> I tried using PCL code to switch page orientation but it is not working
> here my code
> portrait:
>       encode '<27>' into $Pscape
>       let $PrtPscape = $Pscape || '&l0O'
>      ![ESC] & l 0O (el zero Oh)
>       print $PrtPscape         () code-printer=ps
> landscape:-
>      encode '<27>' into $Lscape
>      let $PrtLscape = $Lscape || '&l1O'
>      ![ESC] & l 1O (el one Oh)
>       print $PrtLscape         () code-printer=ps
>
> i also tried the roate command but no luck
>         encode '<27>&a90P' into $rotatefont
>         print-direct  printer = ps $rotatefont  ! rotate text to 90 degrees
>
> I will apreciate any help
> Thanks
>
>
>
>
>  
>____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
>

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