Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print alignment question
Message
De
29/04/2014 21:26:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599257
Message ID:
01599271
Vues:
64
>I have a customer that just made a request that tickled me a little bit, but
>a customer is always right, lol. She wants the verbage that is printed on
>a report to start each line at the same position. That's no problem at all
>obviously. But she wants the right side to end on the same position too.
>
>If there is anyway to do this, I would appreciate the help. I'm hoping its
>as easy as changing the font I'm using. I know Courier New would
>probably do it if every line had the exact same number of characters, but
>that is not the case.
>
>Thanks in advance,
>
>Brad

Hrm... off the top of my head, I would think perhaps you can render the text in question as a graphic image, then set a reference to that object in the report, and set the object to scale to fill the frame. Downside of course is that the text would distort. Very short text would get stretched horizontally to the point where it may no longer be legible, and very long text would get squished horizontally to the point where it might not be legible.

It's likely that the customer is requesting that the text be "justified" so spacing is adjusted (both between words as well as between letters within words) so that the text starts and ends at a specific spot. I suppose if you can put the text into a word-processing object, then place a reference to the word processing object within the report, you might get close to what she's looking for. Of course this won't always work well in extreme case where text is very short, or when it is very long (i.e. too long to otherwise fit in space if normal text size is used -- in such cases negative spacing would be required, and in extreme cases would require much of the text to overlap itself).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform