用Fast Report建立跨栏报表

王朝delphi·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

问:

每一个机器可以对应N多个模具,单重和出件数是模具的属性(如下图)。这样的报表用fastreport怎么建立,机器型号的CELL宽度怎么改变?请大家给我段事例代码。

———————————————-

|机器型号|模具型号|单重|出件数|

———————————————-

| | 9003-1 |120 | 5 |

| K813 | 7853-2 |100 | 6 |

| | 1235-7 | 50 | 10 |

———————————————-

答:

frReport.OnGetValue事件中设置相应frMemoView的FramTyp属性

问:

你可以在设置FramType的之前,查询相应模具的个数,然后再根据这个模具数,调整FramType属性。

如:

if ParName<>'机器型号' then Exit;

if ((ModalCount div 2)>0) and (ModalCount<>1) then

begin

if 当前模具是第1个 then

begin

frMemoview.Framtype=13;

ParValue='';

end else

if (当前模具<>ModalCount div 2) and (当前模具<>ModalCount) then

begin

frMemoview1.FramTyp=5;

ParValue='';

end else

if (当前模具=ModalCount div 2) then

frMemoview1.FramTyp=5;

Inc(当前模具);

end

else if 当前模具=ModalCount then

begin

frMemoview1.FramTyp=13;

ParValue:='';

end

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有  導航