Information générale
Catégorie:
Visual FoxPro Beta
Valentin -
>> I am using the VFP 9 new report engine.
>> When I preview, I see some of my fields and labels has '...'.
>> But when I switch to the old report engine, it displays properly
>> but some information are cut off.
>>
>> Is there a way how to make it behave like the old report engine
>> when displaying my fields and labels without changing the .FRX?
In a word, no.
This is one of the rare cases where "default behavior" was deliberately changed from what the 80 report engine does. It was done specifically because GDI+ text rendering requires the additional space, and it would have been too easy for developers to glance at a report and think, "Oh, this is ok, I don't see any problems" and not see where data was being truncated. The "..." is a visual clue that you are missing some data, potentially.
If you want the 90 reporting to mimic the old behavior, you have to edit the FRX to set StringTrimming to "Nearest character" for all fields.
A better solution is to make the field wider to accommodate the data!
This requirement to use extra width in text rendering is about the only downside of GDI+ rendering, in my opinion. Unfortunately, it is not possible to tell the 90 reporting engine to use GDI for rendering - it's very tightly bound with GDI+.
I hope this helps,
- Colin
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement