Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lines Per Page
Message
From
13/05/2011 19:22:43
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01510649
Message ID:
01510662
Views:
59
>>I have a report that works fine when I output directly to the printer. However, when I output to a file, then try to print the file, i get about 1 1/2 pages of data per sheet of paper. So, Page 2 starts about 2/3's of the way down the first sheet, and continues on the second sheet. Page 3 and the beginning of Page 4 are printed on the second sheet.
>> When I set _ASCIIROWS = 96, it prints Page 1 on the first sheet, Page 2 on the second sheet, etc., but it skips lines in the middle of the data, instead of printing more records per page.
>> The ReportEngine is set to 80, and the command that I'm using is:
>>REPORT FORM (tcReportName) TO FILE (tcExportFile) ASCII NOCONSOLE
>>
>> How can I get it to print neatly, with each page of the output file printing on one page of the printout, and not skipping any lines?
>>
>>Jerry
>
>Hi Jerry,
>
>I think getting ASCII output to be correct is a really tough task. I remember playing with it a while back (say, 11 years back - yes, that old). I played with _ASCIIROWS/_ASCIICOLS at that time, but finally gave up and wrote a program to output to file directly.
>
>So, it may be better to use other formats or means to generate the file.

What gets fiddly about ASCII output is lines-per-page or number of characters per line are dependent on the fonts used - something that you may or may not have control over. Sure, you could probably output control or escape codes to set the configuration you want, but then that'll make your code dependent on the printer you're using (i.e. if you change the printer, it stops working right).
Previous
Reply
Map
View

Click here to load this message in the networking platform