首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未指定报表名称--水晶报表RAS 9

未指定报表名称--水晶报表RAS 9
EN

Stack Overflow用户
提问于 2012-08-06 19:50:10
回答 1查看 376关注 0票数 0

水晶报告引发“未指定报表名称”错误。

我在用

  1. RAS 9
  2. ParameterField.asp
  3. ActivexViewer.asp
  4. rptserver.asp(它没有抓住这个文件中的报告名)

帮助是非常感谢的。

EN

回答 1

Stack Overflow用户

发布于 2012-08-07 07:08:43

尝试在<Report>中添加<CrystalReportViewer>标记,如下所示:

代码语言:javascript
复制
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" ReportSourceID="CrystalReportSource1" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport.rpt">
</Report>
</CR:CrystalReportSource>

动态添加水晶报表源如下:

代码语言:javascript
复制
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrystalReport.rpt"));
reportdocument.SetDatabaseLogon("Username","Password","Server","Database");
CrystalReportViewer1.ReportSource = reportdocument;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11834933

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档