C
cleanhands
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在动态加载一份报告模版后,在动态的创建一些控件,用于数据的现实,但在执行下面的程序后,系统报地址错误。请问哪位又解决的方法?
gg:=ppReport1.GroupFooterBand[0];
ii:=TppLabel.Create(gg);
ii.SetParentComponent(gg);
ii.Height:=12;
ii.Top:=200;
ii.Width:=90;
ii.Caption:='444444';
ii.Name:='yyyyy';
ii.Visible:=true;
}
gg.AddObject(ii);
gg:=ppReport1.GroupFooterBand[0];
ii:=TppLabel.Create(gg);
ii.SetParentComponent(gg);
ii.Height:=12;
ii.Top:=200;
ii.Width:=90;
ii.Caption:='444444';
ii.Name:='yyyyy';
ii.Visible:=true;
}
gg.AddObject(ii);