http://blog.csdn.net/w87875251l/archive/2010/11/02/5983301.aspx
如图,这样的报表如何实现?用什么报表?或用数据绑定控件可以吗?(如repeater),或用其他的??
注意:表中很多字段不是直接从数据库中读取的,而是根据数据库中表的字段用sql语句弄出来的,如已安装代理总数是:
----------总数
select count(computer_idn) as zongshu,company from
(select a.*,b.company from computer a,
(
select b.computer_idn,a.Company,b.IpAddress from gongsia a,BoundAdapter b where left(a.IpAddress,12)=left(b.IpAddress,12)
union
select b.computer_idn,a.Company,b.IpAddress from gongsib a,BoundAdapter b where a.ipaddress=b.ipaddress
) b where a.computer_idn=b.computer_idn
) a group by Company order by company
我想着用reapter控件,但是认为行不通啊