![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#3
| |||
| |||
|
|
This is the way I have accomplished this... In BASIC programs I've embedded the printer control codes as the very first thing in the HEADING statement. In AQL reports I created a routine that return the printer control codes I need based o. In the dictionary of the file I created an item that passes some parameters into the subroutine using an F-correlative. Then, in the heading clause of the AQL statement enter the following: HEADING "'Adict.id' and the rest of the heading stuff". I've only working with setting the lines per inch and characters per inch, but it seems to work well. hth, Dale "bob" <bgf66 (AT) comcast (DOT) net> wrote in message news c6dnWFPisjqM5jZRVn-iQ (AT) comcast (DOT) com...Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#4
| |||
| |||
|
|
This is the way I have accomplished this... In BASIC programs I've embedded the printer control codes as the very first thing in the HEADING statement. In AQL reports I created a routine that return the printer control codes I need based o. In the dictionary of the file I created an item that passes some parameters into the subroutine using an F-correlative. Then, in the heading clause of the AQL statement enter the following: HEADING "'Adict.id' and the rest of the heading stuff". I've only working with setting the lines per inch and characters per inch, but it seems to work well. hth, Dale "bob" <bgf66 (AT) comcast (DOT) net> wrote in message news c6dnWFPisjqM5jZRVn-iQ (AT) comcast (DOT) com...Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#5
| |||
| |||
|
|
Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#6
| |||
| |||
|
|
Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#7
| |||
| |||
|
|
Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
#8
| |||
| |||
|
|
Bob: The simplest solution I've found is to preface the report with the PCL codes. If you want to customize the output __IN__ the heading I'm not sure if the @(-n) functions work with the ASSIGNFQ function. If you're just interested in PCL codes to set the overall font, orientation, and whatever, then you can: SP-OPEN Write the PCL codes Do your report SP-CLOSE Now the problem, as you've mentioned, is the pesky initial form feed. The solution is required for HP printers as they specifically execute a form feed, which always exists in a D3 report prefaced by PCL codes. Other printers ignore the PCL codes and ignore the form feed because nothing is in the print buffer. I was able to solve this problem by turning off all form feeds between pages. The reason this works for me is I've always used standard "footers" with all our reports. With these footers, I've simply included the form feed at the end of the footer; which creates the form feed between pages and not ahead of the initial heading. If you want more information just let us know. Bill "bob" <bgf66 (AT) comcast (DOT) net> wrote in message news c6dnWFPisjqM5jZRVn-iQ (AT) comcast (DOT) com...Has anyone had success with embedding fonts into the basic heading statement. Here's my dilemna. If I put the font esc sequence into the first line of the heading I lose my right justification or centering. I avoid that if I drop down a line but then for some reason I'm losing the heading on the other pages. If I send the font before the heading I get a blank page. I'm trying to decide whether I need to change a bunch of reports by doing the heading myself or if I can find a way to send a font command to the printer without a blank page printing or a adding a blank line in the heading. |
![]() |
| Thread Tools | |
| Display Modes | |
| |