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

RE: [sqr-users] Print-image using .HPG



 
Thanks.  The problem was in fact a permissions issue.

 Gina Bencke
 Work 216-573-1005 X6805 | Mobile 440-479-9961 | Fax 216-573-1070
 Home Office 440-519-0060  
 

-----Original Message-----
From: sqr-users-bounces+gbencke=kichler.com@sqrug.org
[mailto:sqr-users-bounces+gbencke=kichler.com@sqrug.org] On Behalf Of
Tracie Roberts
Sent: Wednesday, December 12, 2007 9:46 AM
To: This list is for discussion about the SQR database reportinglanguage
fromHyperion Solutions.
Subject: RE: [sqr-users] Print-image using .HPG

Gina,

I have seen this problem before also....make sure that you have the
proper rights granted on your image file.  I usually just do a chmod to
777.

Good luck! 

-----Original Message-----
From: Bencke, Gina [mailto:gbencke@kichler.com]
Sent: Monday, December 10, 2007 2:37 PM
To: sqr-users@sqrug.org
Subject: [sqr-users] Print-image using .HPG

 
 am having trouble printing a new logo from UNIX.  I have written a test
program that first prints an existing logo using .HPG format and then a
new file, also in HPG format.  The existing logo prints correctly but
the new logo appears as a gray box.
 
The new file was provided to me in both .JPG and .HPG format.  Since the
.HPG file I was given did not print correctly, I opened the .JPG file in
paint, and saved it as a .BMP file and then ran the BMP_TO_HPG.sqr to
create a second .HPG file. I have tried several image-sizes, all to no
avail. The JPG file behaves identically to the HPG file.
 
btw - if I use the .BMP file in the Windows environment the new .BMP
logo both views and prints correctly using several image-sizes.
 
I am using the following declare printer command:
 
declare printer        ! Declare printer characteristics
  type=HPLASERJET
  left-margin=.25  top-margin=.25
  font=3                 ! Font number
  font-style=fixed
  lines-inch=8           ! Lines per inch
  point-size=8
  orientation=portrait   ! portrait or landscape
 
and for HPG

      graphic () font 4 8        
      print-image  (3, 50)
       type            = HPGL-FILE    
       source             = $logofile !$image_path
       image-size         = (24, 8)
 
for JPG
 
      graphic () font 4 8       
      print-image  (3, 50)
       type            = JPEG-FILE    
       source             = $logofile !$image_path
       image-size         = (24, 8) 
 
for BMP
 
      graphic () font 4 8        
      print-image  (3, 50)
       type            = BMP-FILE    
       source             = $logofile !$image_path
       image-size         = (24, 8)
 
The version of SQR is : SQR for PeopleSoft/8.19/Sun/SunOS 5.6/Oracle
8.0.6/Jan 02 2003.
 
I have looked at the headers in both the old (working) .HPG file and the
new (failing) .HPG file and nothing seems to indicate that the new file
is corrupt.  Can anyone give me some idea of things to try?
 
Regards,
 
 Gina Bencke |  Consultant, Applications Development  Kichler Lighting
|  7711 E. Pleasant Valley Rd.  |  Cleveland, OH
44131
 Work 216-573-1005 X6805 | Mobile 440-479-9961 | Fax 216-573-1070  Home
Office 440-519-0060  

        

 




_______________________________________________
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