Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Another page-length problem
My latest problem in trying to get an old hand-coded report written in FPD to run properly on an Epson LQ300 dot-matrix printer...
The pseudo-code is as follows...
-----------
SET DEVICE TO PRINTER
SET PRINT TO
??? CHR(27)+'@' && reset printer
??? CHR(27)+'x'+CHR(0) && draft
??? CHR(27)+CHR(2) && 6 lpi
??? CHR(27)+'C'+CHR(0)+CHR(11) && page length (11 inches)
SELECT MyTable
SCAN
@ line,col1 SAY col1
@ line,col2 SAY col2
@ line,col3 SAY col3
ENDSCAN
??? CHR(12) && eject
output stuff on next page...
------------
The report prints fine, except for col3 on the final record does not print until AFTER the eject (ie. at the top of page 2)!
To get around this, I have inserted a @ nextline,0 SAY " " after ENDSCAN to 'nudge' col3 onto paper at the correct position. The downside of this is that page2 starts 1-line lower than it should (ie. as if the pagelength was 67 lines).
It appears as though text is being stuck in the print-buffer. How can I empty the buffer without causing the line-advance on page2?
Any help would be appreciated.
Alan
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement