如何在水晶报表中调用存储过程 [英] How to call a stored procedure in crystal report
本文介绍了如何在水晶报表中调用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Crystal Report 7
我想在Crystal Report中调用存储过程。
解决方案
将存储过程添加到报表中;就像添加一个表一样。
添加存储过程需要运行的参数;
因此,如果SP有两个参数,@ PARAM1和@ PARAM2,在您的报告中需要这些相同的参数(名称,类型等)。
Crystal将允许您像任何普通表格的字段一样使用SP返回的字段。
Using Crystal Report 7
I want to call a stored procedure in Crystal Report.
How to do it?
解决方案
Add the stored procedure into your report; like you would add a table.
Add the parameters the stored procedure needs to run; as parameters with exactly the same name they have on the stored procedure.
So if the SP had two parameters, @PARAM1 and @PARAM2 you would need these same paramaters (name, type etc) in your report.
Crystal will allow you to use the SP returned fields like any normal table's fields.
这篇关于如何在水晶报表中调用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文