Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using report designer to create ascii files
Message
De
23/08/1999 17:39:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00256807
Message ID:
00256822
Vues:
21
>I have an existing report that needs to be turned into an ascii text file. I figured the easiest way to do this was to modify the existing report in conjunction with REPORT FORM myReport TO FILE myTextFile ASCII. Unfortunately I am having a difficult time with the vertical spacing. I am figuring 6 lines per inch, but am unable to get the report designer work. For example I put 24 lines (using courier 10 cpi, screen font) in 4 inches, but certain lines overwrite each other in the text file. To get all lines to come out in the text file, I have to space them out 4.5 inches in the report designer. When I print out the text file I see that it only takes 4 inches. My real issue here is how to determine the appropriate spacing in the report designer. Thanks for any feedback.
>
>Marcus.

I'm afraid that the way you are doing it is the best that you will get with the report designer. You have discovered a MAJOR shortcoming in the TO ASCII clause of REPORT FORM. Even though there is no printed output, VFP uses the current printer driver to decide how to space the elements in the text output. So even if you are able to correctly space your report fields, if you switch printers, you might have to start all over again, because your spacing could be messed up.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform