M
misai
Unregistered / Unconfirmed
GUEST, unregistred user!
我用fastreport制作动态分组报表时遇到的问题时,用了以下一段代码:
//创建并添加 groupheader
gz_x:=left_side;
b := TfrBandView(frCreateObject(gtBand, ''));
b.SetBounds(gz_x, 200, 400, 0);
b.BandType := btgroupheader;
b.Prop['formnewpage'] := True;
b.name:='groupheader1';
b.Prop['condition'] :='[adoquery1."部门号"]';
Page.Objects.Add(b);
//创建并添加 groupheader
每次启动后,第一次运行正常,接下来再运行时就会出现 'access violation at address...'错误,经反复检查,发现屏蔽掉'b.Prop['condition'] :='[adoquery1."部门号"]';'这一句就一切正常,可这句是分组条件,不可缺少,进退两难,不知如何是好,请高
人指点,分数不够可再加?
我用的是delphi5.0+access+fastreport2.42。我在其它的电脑上也试过,同样错误。
//创建并添加 groupheader
gz_x:=left_side;
b := TfrBandView(frCreateObject(gtBand, ''));
b.SetBounds(gz_x, 200, 400, 0);
b.BandType := btgroupheader;
b.Prop['formnewpage'] := True;
b.name:='groupheader1';
b.Prop['condition'] :='[adoquery1."部门号"]';
Page.Objects.Add(b);
//创建并添加 groupheader
每次启动后,第一次运行正常,接下来再运行时就会出现 'access violation at address...'错误,经反复检查,发现屏蔽掉'b.Prop['condition'] :='[adoquery1."部门号"]';'这一句就一切正常,可这句是分组条件,不可缺少,进退两难,不知如何是好,请高
人指点,分数不够可再加?
我用的是delphi5.0+access+fastreport2.42。我在其它的电脑上也试过,同样错误。