Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another page-length problem
Message
De
15/03/2004 12:51:10
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Another page-length problem
Divers
Thread ID:
00886379
Message ID:
00886379
Vues:
49
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
Fil
Voir

Click here to load this message in the networking platform