Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Orientation (Flat files)
Message
From
30/09/1996 10:54:24
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00008839
Message ID:
00008847
Views:
33
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform