发信人: freely (阿疯), 信区: BorlandDev
标  题: Re: 请教一个Delphi报表的问题
发信站: 哈工大紫丁香 (2000年12月26日21:58:30 星期二), 站内信件

问题解决了,应该将qrdbtext的wordwrap属性设成true

同时autosize属性设成false,下述打印就可以实现了

delphi帮助中的相关内容如下
property WordWrap : Boolean
Applies to
TQRCustomLabel, TQRLabel
Description
The WordWrap property controls how a line of text that is
too long to fit in the width of the control is printed.
If WordWrap is True the text will be wrapped to a new line.
If the AutoStretch property is True this might make the
control expand vertically.
If WordWrap is False the text will be clipped. WordWrap
is True by Default.

  ^-^
另外,要想实现分行的话还要在字串中间加上空格

否则的话还是分不了行

【 在 freely (hehe) 的大作中提到: 】
: 要想将打印的某一列分两行打印如何实现?
: 例如:
:  编号     名称     负责人 ...
: 00001   哈尔滨工   XXX    ...
:         业大学
: 00002   哈尔滨理   XXX    ...
:         工大学
: ...
: 名称一栏,由于诸多原因不能设成Memo
: 如何实现?


--

I know i love you before i met you.
   I've been waiting all my life ... ...
yours,          
  freely


※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: freely.hit.edu.cn]
※ 修改:·freely 於 12月26日22:01:59 修改本文·[FROM: freely.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.953毫秒