Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print rotated text on a VFP report... finally
Message
De
03/07/2003 03:10:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Print rotated text on a VFP report... finally
Divers
Thread ID:
00806441
Message ID:
00806441
Vues:
366
Hey Fox Folks...
I thought it was time I gave something back here, so this has just been added to the 'download' section of the UT (download #19300)...

It's always frustrated me that there is no way to rotate text on VFP reports. Well, that's true and I can't change that, but...

I made two fonts that print the characters sideways, one rotates characters 90 degrees clockwise (SideCW) and another that rotates characters 90 degrees counter-clockwise (SideCCW).

Thus, to print the text sideways, one puts a field on the form, squeezes it down to one character and checks 'Stretch with overflow'. Then, when the text stretches down the report, the letters will be rotated accordingly.

Some notes on this:
If you are using the CCW font, you need to wrap it in a small function I've attached that reverses the letters. This is because the 'stretch with overflow' function leaves the first letter on the top line and pushes the rest of the text DOWN. If you're using a CCW font, that puts the rotated text in what seems like a reversed order.

One last helpful hint:
When using the CCW font, right align the text.
When using the CW font,left align the text.

One gotcha:
Thanks to VFP, no spaces are printed. It doesn't have to do with the font, but with the native VFP stripping of the spaces. If anyone can help me figure out how to deal with this, I'd be glad to fix it!

Enjoy!
-- John Kiernan
"Maybe Amelia Earhart was just stealing the plane".
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform