delphi5中。报表打印不能换行(字段类型不能为memo)
解决方案 »
- 如何制作程序控制自动登陆QQ2009和2010
- 求个控件..搜了半天找不到能满足要求的~谢谢~
- dear all :我想判断字符串'hello' 是否在集合 ['hello','world','god']里面,用了如下语句,错误的说,请赐教
- dbgrid中如何嵌入maskedit 在线等待阿 大家圣诞快乐
- 放分了!用Fastreport或reportmachine可以实现程序和报表分离吗?
- 帮我找找OpenDialog这个组件?先谢谢大家。在线等哈子~
- 代码创建TADODataSet的问题!
- 讨论:用连接点机制到底能不能实现跨机器的回调?(连接点存放在一个dll类型的com+服务器应用程序)???
- 怎样用SQL语句更新日期字段的值
- 在qq用iplocate就可知道对方的ip地址, iplocate在哪儿可以下载,穷鬼问的问题
- 求助: 请高手帮忙写一个函数, 我总是写不好!(pascal 基础问题)
- 请问:delphi怎样读xml文件?
AutoStretch:=True;
WordWrap:=True;
//最重要的
你的该字段的内容里要包含空格或者回车符(在要折行的地方)即#10和#13
AutoSize:=False
AutoStretch:=True;
WordWrap:=True;
可以吗?
换行为什么不自己动态的去写?
我有写过
AutoSize:=False
AutoStretch:=True;
WordWrap:=True;
可以吗?
换行为什么不自己动态的去写?
我有写过
处理一下OK?
fuction texttomemo(a:string,n:integer):string;
var tempstr1,tempstr2 ,tempstr3:string;
tempnum:integer;
begin
tempnum:=0;
tempstr1:=a;
while length(tempstr1)<>0 do
begin
tempstr3:=copy(tempstr1,1,n)
tempstr2:=tempstr2+tempstr3+#13#10;
tempstr1:=copy(tempstr1,n,length(tempstr1))
end;
result:=tempstr2;
end;
procedure TCommRepForm.QRDBText3Print(sender: TObject; var Value: string);
var
x: integer;
xbytetype: TMbcsByteType;
begin
x := 66;
if length(value) > x then
begin
xbytetype := bytetype(value, x);
if (xbytetype = mbLeadByte) or (xbytetype = mbsinglebyte) then
insert(#13, value, x)
else
insert(#13, value, x + 1);
end;
end;依此类推!!