【问题标题】:How To Add More Than 1 Select Sections as DataSource in Crystal Report如何在 Crystal Report 中添加超过 1 个选择部分作为数据源
【发布时间】:2020-11-22 12:56:20
【问题描述】:

如下procedure 它有两个选择部分(type=1type=2)。我正在将 Crystal Report 与此过程绑定。这两个部分都必须绑定报告。 type=1 提供多行,type=2 提供单行。首先,我必须将报告与type=2 绑定,然后在同一报告上与type=1 绑定。但是在 Crystal Report 中将此过程选择为DataSource 时,它只会选择type=1 选择方法为DataSource。我应该如何在程序中将types 都包含在报告中的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-reports sap


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-21
      • 1970-01-01
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多