[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



Thanks, i will try this on Monday and let u know the result 

Sent from my iPhone

On Apr 25, 2008, at 21:50, "Ray Ontko" <rayo@ontko.com> wrote:

When you run the sqr program, you'll need to include "-printer:ps" on the
command line if you want to generate Postscript output. Then, the output
file can be given to Ghostscript.

If you want to generate PCL output, be sure to use "-printer:hp" on the
command line.

Ray

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

Thanks for quick reply.

maybe i mixed things up in my email. let separate them.

The program you sent me which i believe is the one in your web site. I ran
it as is after installing Ghostscript but it not work. Do  I have to do
anything to tie the  sqr to  Ghostscript ?

The next thing is HP and the PS codes.
Is there PS code to do multiple printing without the HP PCL escape code?

Thanks and have a wonderful weekend.

Amechi

----- Original Message ----
From: Ray Ontko <rayo@ontko.com>
To: This list is for discussion about the SQR database reporting language
from Hyperion Solutions. <sqr-users@sqrug.org>
Sent: Friday, April 25, 2008 5:05:59 PM
Subject: Re: [sqr-users] Printing Verical Text in sqr using GhostScript not
working

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






____________________________________________________________________________________
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



      
____________________________________________________________________________________
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