Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another page-length problem
Message
 
 
To
15/03/2004 12:51:10
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00886379
Message ID:
00886654
Views:
16
Hi Alan,

Just a SWAG. Maybe one of following combination coul help?
??? CHR(13) + CHR(10) + CHR(12) 
??? CHR(13) + CHR(12)
??? CHR(10) + CHR(12)
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform