Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output of a report to a specific file format
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00166289
Message ID:
00166675
Vues:
12
>Hello Chuck!
>
>>The only way to do this in FPW is to make a duplicate report in DOS and when you want to print the report to ascii then run the dos report. The other option is to load the generic print driver and print to it. I know that there are other print drivers out there for like RTF and AcroBat. You might want to check into these. If you want to upgrade to VFP there is a command called REPORT FORM myReport TO FILE ASCII, which doesn't format it quite right.
>
>Alot of our customers want to have it in Excel format so that they can play around with it. I found FoxWord which will output it to RTF format. But is there something like that for Excel format?
>
>Thanks in advance!

The only thing I can think of is to run the report to a file. then create a table and append from the file and then export the file to excel

REPORT myDosReport TO FILE myTextFile.TXT
CREATE myTable (line C(254))
APPEND FROM myTextFile.txt
COPY TO myExcel.xls TYPE XLS

There might be a better way I don't know of. There is always more than one way to do skin a Fox.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform