Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lines Per Page
Message
De
14/05/2011 09:02:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01510649
Message ID:
01510675
Vues:
126
>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

If you have the option of opening the report in the old FoxPro/DOS, I believe this version will be used. In it, the lines and columns are integers - much easier to control.

Another option is to create a separate report for text-only, for example with my download for text reports - or simply concatenating a string and writing it with FileToStr().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform