通过Delphi向Rave报表传值发生错误!
下面代码是打印按钮中的代码,RvProject1的FileName我已经设置了,运行时发生Access violation at address 007FCD53 in module'ShiYan.exe'.Read of address 00000000.请问是不是要动态创建啊,我试了几次都不行,如果要动态创建代码把,谢谢哦!!var
RvReport1:TRaveReport;
RvPage1:TRavePage;
RvText:TRaveText;
begin
RvProject1.Open;
RvReport1:=TRaveReport(RvProject1.ProjMan.FindRaveComponent('orderprint',Nil));
RvPage1:=TRavePage(RvProject1.ProjMan.FindRaveComponent('Page1',RvReport1));
RvText:=TRaveText(RvProject1.ProjMan.FindRaveComponent('Text1',RvPage1));
RvText.Text:=Edit1.Text;
RvProject1.Execute;
end;