ReportServices如何在一页中将报表分成两列显示

创建两个数据集 DataSet1    DataSet2

DataSet1

SELECT   TOP
                    (SELECT   (COUNT(*) + 1) / 2 AS Expr1
                     FROM      (SELECT   ID,Desc             
                                      FROM      TableName
                                      GROUP BY Desc) AS a) ID as ID1,Desc  as Desc1
FROM      TableName
ORDER BY ID1

DataSet2

SELECT   ID,Desc
FROM      (SELECT   TOP
                                     (SELECT   COUNT(*) / 2 AS Expr1
                                      FROM      (SELECT  ID, Desc
                                                       FROM      TableName
                                     ) AS a_1)  ID,Desc
                 FROM      TableName      
                 ORDER BY ID DESC) AS a
ORDER BY ID

在页面上插入两张一样的表,数据源分别为DataSet1和DataSet2

上一篇:设计模式16:迭代模式(Iterator)


下一篇:asp.net 发送邮件