Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Orientation (Flat files)
Message
De
30/09/1996 10:54:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00008839
Message ID:
00008847
Vues:
34
>Hello all, I have a question about printing flat files. That is ASCII files. In VFP how can I program to print in landscape without user intervention. I need to be able to controll orientation of these print jobs.
> Any ideas would be much appreciated. I have read the manual and it is not a whole lot of help on this.
>:/
>
> Joe Johnston

>> I believe that we can find some Windows API function to do this job. But sometimes it's better to stay within Fox so consider following:
1. Create report with specified landscape orientation.
2. On detail band put just one box to print MyCursor.asciistring.
3. Before printing report form create in code cursor with one character/memo field: asciistring.
4. Fill this field with file contents using functions FOPEN,FSEEk,FREAD,FCLOSE. Foxpro manual has nice example.
5. REPORT FORM to print report.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform