泥
泥巴caption
Unregistered / Unconfirmed
GUEST, unregistred user!
请大家帮帮我好吗?急用。我没有多少分了,只能拿出50分了,谢谢
我想动态给我的报表的标题赋值,报表是这样写的:
collist:=TStringList.Create ;
collist.Append('title');
collist.Append('name');
collist.Append('data');
datalist:=TStringList.Create ;
datalist.Append(gsm);
//gsm:string 前面已经定义
datalist.Append('合计工费');
datalist.Append(CurrToStr(sumje));
ReportRunTime1.loadfile('C:/ProgramFiles/Borland/Delphi6/Projects/rgzydhz.ept');
ADOQuery2.Close ;
ADOQuery2.SQL.Text :='select * from tempx';
ADOQuery2.Open ;
ReportRunTime1.SetDataset('tempx',ADOQuery2);
ReportRunTime1.SetDataset('rgzydb',ADOQuery1);
ReportRunTime1.PrintPreview(true);
报表的标题是gsm是从注册表里取的数据,但每次都提示:
'String or binary data would be truncated'然后就不能运行了
我想动态给我的报表的标题赋值,报表是这样写的:
collist:=TStringList.Create ;
collist.Append('title');
collist.Append('name');
collist.Append('data');
datalist:=TStringList.Create ;
datalist.Append(gsm);
//gsm:string 前面已经定义
datalist.Append('合计工费');
datalist.Append(CurrToStr(sumje));
ReportRunTime1.loadfile('C:/ProgramFiles/Borland/Delphi6/Projects/rgzydhz.ept');
ADOQuery2.Close ;
ADOQuery2.SQL.Text :='select * from tempx';
ADOQuery2.Open ;
ReportRunTime1.SetDataset('tempx',ADOQuery2);
ReportRunTime1.SetDataset('rgzydb',ADOQuery1);
ReportRunTime1.PrintPreview(true);
报表的标题是gsm是从注册表里取的数据,但每次都提示:
'String or binary data would be truncated'然后就不能运行了