Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Font in SQR Report

Status
Not open for further replies.

crystalized

Programmer
Jul 10, 2000
390
CA
Hi All,

I am modifying an exsiting report. The report used the following things to set up the printer

Code:
begin-setup
printer-init <27>E<27>&l0O<27>&l2S<27>(s16.66H

#define PAGE_MAX_COLS    120
#define PAGE_MAX_LINES   177
#define page_orientation portrait
page-size 177 150
end-setup
.
.
.
begin-procedure Init-Printer_PS10
declare printer 
  type          = HPLASERJET
  orientation   = portrait
  top-margin    = 0.30
  left-margin   = 0.1
  font          = 5
  point-size    = 10
end-procedure Init-Printer

For part of the printed output of the report I would like to adjust the font size. The docs indicate that I should use alter-printer, but it errors out when used in conjunction with the printer-init etc.

So I made an attempt to replace the printer-init and the printer procedure listed above with declare-printer and declare-layout settings in the setup section. But it seems no matter what combination of declare-printer etc I use I am ending up with the output completely messed up.

The problem is that the output file instead of printing nice and neat as before is now printing large gaps between each line (I would say approximately double spaced).

Does anyone have any thoughts on this.

Thanks in advance,

Crystal
--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Hi All,

After spending the rest of the day searching I found that I can add a point-size=11 to the print statements where I want the enlarged font.

I was not able to convert to the declare-printer and alter-printer options successfully, but the point-size on the print made it alright - and unfortunately that option is not listed in any of the docs (that I could find).

Hopefully this will help shorten the search time for someone else.

Crystal
--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top