Horizontal alignment problems on the report

Category: Delphi -> Database Author: rabbitfang Date: 2012-10-23 16:27:27
 
rabbitfang
2012-10-23 16:27:27
There memo fields in the database, the contents of which have long or short. When doing a report on how to do qrdbrichtext horizontal alignment of other controls (such as qrdbtext) My current situation is as follows:
---------------------- -------------
Name | Sex | personal lovers |
------- ----------------------------
| ; | reading ; |
Zhang | M | ; |
| | |
--------------------- -------------
| | play games, play |
John Doe | M | Basketball , swim |
| | Swimming |
---------------------------------- ;
;
I want to do that, ; when qrdbrichtext automatically when only a single line with the previous level of alignment. Thank

liujie271
2012-10-23 16:34:36
suggested, in fact, when the presence of loving words show how the problem can be solved dynamically change the display font size qrdbrichtext QR
in the ONNEEDDATA event write code.

if length (adotable1.FieldByName ('personal lovers'). AsString) <= 6 then
qrdbrichtext1 . Font.Size: = 22
else if (length (adotable1.FieldByName ('personal lovers'). AsString)> 6) and (length (adotable1. FieldByName ('name'). AsString) <= 12) then
qrdbrichtext1.Font.Size: = 20
do not know if the landlord feel they fit?
a_a789
2012-10-23 16:41:19
Print Control in professional reports: www.bluec.com.cn
a454217125
2012-10-23 16:59:18
have not used your report. Do not quite understand what you mean.

is not text alignment? ?

If yes:
Reference: SetTextAlign (HDC, UINT) API function. You should be able to achieve alignment
abc7619
2012-10-23 17:04:40
Halo, the effect how this is so. Do not know if you do not understand.
temple2012
2012-10-23 17:17:09
to say, I am "personal hobby" set aside three lines, but if the content is too short memo when qrdbrichtext can be displayed one line, so that it is not horizontally aligned with the front of it.
nukehe
2012-10-23 17:34:17
without third-party controls can do it?
kidfox1111
2012-10-23 17:50:52
someone could help me?
extra80386
2012-10-23 17:57:37
someone could help me?
tailpan
2012-10-23 18:06:45
do not understand what it meant?