在Crystal Reports v10中使用存储过程 [英] Using A Stored Procedure in Crystal Reports v10

查看:83
本文介绍了在Crystal Reports v10中使用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个Sql存储过程,用于形成销售人员的姓名(在数据库表中,该人员的姓名存储在2个字段中-名字和姓氏)以及其他一些计算方法事情.

I have a Sql Stored Procedure, which is used to form a Sales Person's Name ( in the database table the person's name is stored in 2 fields - Firstname & Surname ) as well as a few calculations amongst other things.

当我运行Crystal Report时,它要求输入4个参数:Start&结束日期,销售人员和报告标志.

When I run the Crystal Report, it asks for 4 parameters: Start & End Date, Sales Person and Report Flag.

销售人员"参数是我最感兴趣的参数.

The Sales Person parameter is the one i'm most interested in.

它使用一个下拉列表,该列表是在 Parameter字段下创建的,该列表会产生正确的结果,但是当您有多个报告时,它将变成一个麻烦的时刻-消耗了删除和/或增加新人的机会.

It uses a drop-down list which has been created under Parameter Field, which produces the correct results, but when you have multiple reports, it becomes a litle time-consuming removing and/or adding new people.

我不想使用列表,甚至每次都不导入txt文件,而是希望通过存储过程从数据库中获取销售人员,然后使用它来搜索报告.

Instead of using the list or even importing a txt file each time, I would like to get the Sales People from the database via the Stored Procedure and then use this to do searches for the report.

任何想法?????

非常感谢

推荐答案

您好

Hello

 

谢谢您的发帖!我建议将您的问题发布到其中之一

Thank you for your post!  I would suggest posting your question in one of the

Visual Studio Developer Center > Visual Studio Forums > Crystal Reports for Visual Studio


这篇关于在Crystal Reports v10中使用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆