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

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

问题描述

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

Using: CR in VS2010, SQL Server 2008R2

我有一个在 SQL Server 中运行时返回结果的 SP,但是当我将它添加到 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.
  6. 但是旁边没有加号+号.这意味着它不显示其字段.

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

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

对这个很生气..请帮忙.

Pissed of with this one..Please help.

谢谢

推荐答案

我是通过不接受左侧子报表链接中的默认选择水晶得到的.我不得不将其更改为我自己的,并且不使用默认值.

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.

那行得通.谢谢

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

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