Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Bill -
In trying to implement the Listener Classes described in Cathy Pountney's "Visual FoxPro 9.0 Report Writer In Action" article on MSDN, I found that the "SqueezeText" directive class was giving me inconsistent results. The FFC FrxCursor class uses GetDeviceCaps() to override the hardcoded property of ScreenDpi=96 which is used in GetFruTextWidth(). My screen returned a value of 120 which caused the wimpy Squeeze. Resetting ScreenDpi=96 seems to have cured the problem.
You may have found a bug. I looked through the source code, and the frxCursor class uses a hard-coded value of 96 in .FruToPixels() and .PixelsToFru(), but uses the screen-dependent value of .ScreenDPI in .GetFruTextWidth() and .GetFruTextHeight().
It seems to me that the latter two methods should also use the explicit value of 96. It has to be 96 because the Report Designer is fixed at that resolution, and these methods are used to arrange report control elements in the 96-dpi layout.
I'm glad you found a work-around.
- Colin
Précédent
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