General information
Category:
Reports & Report designer
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only