Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a File??
Message
De
18/02/1999 20:06:32
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00188515
Message ID:
00189103
Vues:
18
Oops- What I really meant to write and what I actually did was:
*!* use cust
*!* go top
*!* set print off
*!* set printer to myfile.txt
*!* set device to print
*!* set printer on
*!* set console off

*!* scan
*!* ??trim(cust.cusname) at 1
*!* ??trim(cust.add) at 25
*!* ?
*!* *??? chr(10)
*!* endscan
*!* use
*!* set printer off
*!* set printer to
*!* set console on
The ??? just kills the file. In any case, I believe I have found a way out of my problem though using the ? and ?? commands. Let me give you some more background on what I am trying to do so you can appreciate the situation I find myself in. We are currently in Fox DOS and in our program contains over 500 legal documents coded in the FoxPro report writer liberally sprinkled with printer control codes. I have no interest in recoding all these reports in the Visual Foxpro report writer. I plan to programatically convert the report files to prg files and print them using rawprint. I have jumped through hoops trying to get the control codes to work correctly. I believe someone could make a good deal of money if they came up with a class or dll or whatever to automate this process. I can begin to see the light at the end of the tunnel but it remains very small. Thanks for your help.
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform