存储过程未在Crystal报表中显示字段 [英] Stored Procedure not showing fields in Crystal reports

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

问题描述

使用:VS2010,SQL Server 2008R2中的
CR

Using: CR in VS2010, SQL Server 2008R2

我有一个SP,在SQL Server中运行时会返回结果,但是当我将其添加到CR,它不会在字段资源管理器中显示任何字段。但是,如果我尝试其他任何SP,它都能正常工作,我可以看到其字段。
我正在执行的步骤:

I have a SP that returns results when run in SQL Server, but when I add this to a CR it doesnt show any fields in the Field Explorer. But if I try any other SP, it works fine I can see its fields. Steps I am performing:


  1. 打开现有的CR

  2. 右键单击数据库字段- ->数据库专家->
    删除旧的SP->添加新的SP

  3. 弹出带有Enter Values的窗口,我将其全部设置为NULL,然后单击OOK。

  4. 新SP出现在数据库专家右侧

  5. 我可以在字段资源管理器的数据库字段部分中看到新的SP。 / li>
  6. 但是,它旁边没有加号+。这意味着它不显示其字段。

  1. Open existing CR
  2. Right CLick Database Fields --> Database Expert --> remove the old SP --> Add the new SP
  3. A window with Enter Values pops-up, I set all to NULL and click OOK
  4. The New SP shows up in the Database expert right side
  5. I can see the new SP in the Database Fields Section in the Field Explorer.
  6. However there is no PLUS + Sign next to it. That means it doesnt show its fields.

事实上,新SP和旧SP都具有相同数量的字段。只是更改了一些SQL。

Infact the new SP and the old have both have the same number of fields. Just some sql changed.

对此不满意。请帮助。

谢谢

推荐答案

我是通过不接受左侧子报表链接中默认的Crystal选择晶体来实现的。我必须将其更改为我自己的名称,并且不得使用默认设置。

I got it by not accepting the default selection crystal makes in the subreport links on the left side. I had to change it to my own and no tuse the defaults.

那行得通。
谢谢

That worked. Thanks

这篇关于存储过程未在Crystal报表中显示字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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