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

Printing image on Unix



Hi everybody,
I'm totally new on SQR and I've been trying to print our company logo. Our
reports runs under Unix and I just see a box instead the figure. I have
tried with .jpg, .gif, .eps and .hpgl formats. See below my test source and
attached the results. Can anyone show me the light? Am I missing something?

Begin-Setup
  Declare-Layout SQRLogo
        Orientation = Portrait
        left-margin = 0.95
        top-margin  = 0.75
        Max-Lines   = 62
        Max-Columns = 80
  End-Declare

  Declare-Report SQRLogo
        Layout      = SQRLogo
        PRINTER-TYPE= HP
  End-Declare

  Declare-Image logo
        Image-Size = (33,6)
        Source = 't:/jam/logo.eps'
        Type  = EPS-FILE
  End-Declare

End-setup

begin-program
!------------
Graphic   (1,1,66) Box 58 20
Alter-Printer    font = 5 Point-Size = 30
let #existe = exists('/programacao/jam/logo.eps')
show #existe
!------
print 'This is a test' (2,20)
if #existe != 0
 print 'Image not found'(5,10)
else
 print 'Image found'(5,10)
end-if
print-image logo (10, 25)
End-program
!---------------------------------------------------------------------------
--------------
Nelson Richter
 <mailto:richter@zaffari.com.br> richter@zaffari.com.br
Cia Zaffari Com. Ind. Porto Alegre - Brazil
Phone:   +55 51 3337-3111 ext. 3373

test.gif

logo.eps