Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to file with ? commands
Message
De
28/01/2008 09:02:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
01286038
Message ID:
01286040
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>It has been so long since I did this I don't remember how to do it. I am working with an ancient FoxPro DOS program that prints reports with ? commands. The reports are voluminous and I want to direct them to files rather than use up reams of paper. Have been monkeying around with the SET PRINTER TO command, and do get a file, but it consists only of a few special characters. (There is output which I see on the screen). Can someone please remind me how to do this? Running VFP 9 under Windows XP.
* Enable output
set console off
set alternate to MyText.txt
set alternate on

* Run the report
? "Hello World

* Disable output
set alternate off
set alternate to

* Show the report
modify command MyText.txt
Or better, use FAQ #8134.

For text reports, see also download #9991.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform