Crystal reports 如何在Crystal Report中添加多个SelectSection作为数据源

Crystal reports 如何在Crystal Report中添加多个SelectSection作为数据源,crystal-reports,sap,Crystal Reports,Sap,如下程序有两个选择部分(type=1和type=2)。我用这个程序绑定Crystal Report。这两个部分都必须绑定到报告type=1给出多行&type=2给出单行。首先,我必须用type=2绑定报表,然后在同一报表上用type=1绑定报表。但在Crystal Report中将此过程选择为DataSource时,它仅选择type=1将方法选择为DataSource。我应该如何在过程中将这两种类型作为数据源包含在报告中? 我在VS2008中使用CrystalReport ALTER proce

如下
程序
有两个选择部分(
type=1
type=2
)。我用这个程序绑定Crystal Report。这两个部分都必须绑定到报告
type=1
给出多行&
type=2
给出单行。首先,我必须用
type=2
绑定报表,然后在同一报表上用
type=1
绑定报表。但在Crystal Report中将此过程选择为
DataSource
时,它仅选择
type=1
将方法选择为
DataSource
。我应该如何在过程中将这两种
类型
作为
数据源
包含在报告中? 我在VS2008中使用CrystalReport

ALTER procedure [dbo].[usp_report]
 @applicationno varchar(20)=null,
 @sessionyr varchar(10)=null,
 @type int=null
as
BEGIN
     
     if(@type=1)
       begin
                /* Select Statement Goes Here */
       end    
    if(@type=2)
       begin
                /* Select Statement Goes Here */
       end
               
END

从Crystal中存储的进程中使用多个resultset是不可能的。您可以调整proc,以便它为这两种类型提供相同的列(当然,只填充使用过的列)