Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Problem With TextAlignment Property

edited October 2008 in General
I've just upgraded to version 10.09. I used to set the justication in code
with .Alignment = taRightJustify. This compiled and ran fine in Delphi 6
prior to my upgrade. Now when I execute the report a get a run-time error
of Invalid Typecast.

I found out the .Allignment has now been replaced with .TextAllignment. I
added the unit ppPrnabl to my uses clause. I now get the error Undeclared
identifier: taRightJustified when I compile.

If fails at the line:

(TheForm.Components[i] as TppDBText).TextAlignment := taRightJustified;

I did a search of all of the RBuilder *.pas files. I could not find where
the variables are defined.

I'm running MS Vista.

Please help.

Thanks,

Al Willis

Comments

This discussion has been closed.