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

RE: [sqr-users] Image printing in SQR





Here are notes out of an old program we no longer use; maybe you will
find it useful.




Begin-SETUP 
    
 
!-----------------------------------------------------------------------
-----
    !  The first print stmt executed within this pgm must be with a
fixed font (3)
    !  and with point-size 12 --- this establishes the 'grid' used for
calculating 
    !  the graphic positions.
 
!-----------------------------------------------------------------------
-----

#include 'setupdb.sqc'


  DECLARE-PRINTER inv_printer
    type       = HPLASERJET
    font       = 3             ! Courier      (a fixed font) 
!   font       = 5             ! Times Roman  (a proportional font) 
    point-size = 12            ! 12 points    (yields 10 characters per
horizontal inch in Courier) 
  END-DECLARE


  DECLARE-LAYOUT inv-layout
    paper-size     = (8.5,11)     !  8.5" x 11"
    orientation    = portrait
    left-margin    = .375         !  3/8 inch    (column 1 offset from
left paper edge) 
    top-margin     = .375         !  3/8 inch    (row 1 offset from top
paper edge)
    bottom-margin  = .25          !  1/4 inch    
    line-width     = 7.875        !  7.875 inches (printable portion)
    line-height    = 9            !  9 points    (yields 8 lines per
vertical inch)
  END-DECLARE

!---------------------------------------------------------------------
!   
!    line-height = 9            !  9 points    (yields 8 lines per
vertical inch)
!   
!  Given top-margin=.5, with paper-size=(8.5,11), with
orientation=portrait,
!  specifying max-lines=79 will yield 64 printable lines on a page, and
any 
!  additional print lines up to 79 fall into oblivion when explicit line
positions
!  are specified.
!
!  Using max-lines instead of line-height when using a proportional font

!  'turns on' the SQR mechanism that auto-adjusts the print to fit
!  without overlapping. 
!
!  The only way I've found so far to get 8 lines per vertical inch is to
use line-height.
!   
!---------------------------------------------------------------------
!  It appears that referential printing  --- such as (+1,1) --
!  is not appropriate with a proportional font.  When I tried it, it
!  seemed to constantly advance 2 lines, based upon the layout's
line-height.
!---------------------------------------------------------------------
!  Also, you can't use 'graph' with a proportional font.
!-----------------------------------------------------------------------

  DECLARE-REPORT inv-report
    layout       = inv-layout
    printer-type = HPLASERJET
  END-DECLARE



  DECLARE-VARIABLE
     DEFAULT-NUMERIC=DECIMAL(18)
  END-DECLARE


End-SETUP    


 

-----Original Message-----
From: sqr-users-bounces+thompsob=uww.edu@sqrug.org
[mailto:sqr-users-bounces+thompsob=uww.edu@sqrug.org] On Behalf Of
JOHN_HARRIS@qvc.com
Sent: Monday, September 24, 2007 8:58 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Image printing in SQR


I am trying to change the image used in my reports.

Currently the image has these properties:
Height = 56
Width   = 118

The code looks like this:
PRINT-IMAGE                           (1,1,0)
   TYPE = BMP-FILE
   SOURCE = 'QVC.bmp'
   IMAGE-SIZE = (12,3)

This work fine.

The new image has the following properties:
Height = 68
Width   = 64

The image is stretched on the report.  Any suggestions on what the
IMAGE-SIZE parms should be?
The only information I can find on the IMAGE-SIZE is this:  "Specifies
the width and height of the image in SQR coordinates."
How are the "SQR coordinates" determined?



 

 

 Any questions, please call or email

 me

 

 

 

 Thank you.

 

 Regards,

 

 John

 

 

 

 (Embedded image moved to file:          John Harris

 pic16519.jpg)                           Programmer/Analyst

                                         Application Development -

                                         Internal

 






QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262


Telephone 484-701-3303
Fax 484-701-8437
e-mail jharris@qvc.com



This message may contain information that is privileged or confidential.
This message may contain information that is privileged or confidential.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution, or use of the information contained
herein is STRICTLY PROHIBITED. If you received this transmission in
error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format.

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