Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show a table in Pre
Message
De
01/03/2020 03:23:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/02/2020 17:56:25
Information générale
Forum:
Level Extreme
Catégorie:
Autre
Divers
Thread ID:
01673277
Message ID:
01673281
Vues:
62
>Dmitry, use an editor with a monospaced font (like VFP's editor with its standard settings) and then paste the contents inside LevelExtreme.
>
>Hopefully, like this:
>
>
>COLUMN 1             COLUMN2               COLUMN3
>Value 1              Value 2               Value 3
>Value 1              Value 2               Value 3
>
I once had to do something like that programmatically, because I had to produce a report on the A3 landscape paper at 17,5 CPI on a dot matrix printer. That's more than 256 characters and no method of character mode printing in Fox allows you to do that, and any method of textmerge has its own quirks and may not give the alignment you expect. So I had a printable variable, which would start as space(288) or some such length. Then any amount printable would go into its position at a given length something like this:

lcLine=stuff(lcLine, lpos, 8, padl(qty, 8))

Of course, lpos was the calculated offset for that column. In the end, the lcLine would be fwrite()n into the textfile, with a crlf. And it worked and it printed beautifully.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform