【发布时间】:2020-11-22 12:56:20
【问题描述】:
如下procedure 它有两个选择部分(type=1 和type=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