无法使用报表查看器在设计器中编辑报表/预览 [英] Cannot edit report/preview in designer with report viewer

查看:86
本文介绍了无法使用报表查看器在设计器中编辑报表/预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hello all,

Hello all,

尝试使用visual studio 2005创建我的第一个Crystal报表(默认安装)

Just tried to create my first Crystal report using visual studio 2005 (default installation)

我已经阅读了相应的演练场景,但有很多信息需要参考,我希望你可以帮我解决这个问题。

I have read the appropriate walk-through scenario, yet there is a lot of information to take in and I was hoping you could help me with this problem.

我可以使用添加新项目创建报告,并使用集成安全性连接到SQL Server 2005数据库,并且可视化工作室中的报告预览正常。

I can create the report using add new item, and connecting to an SQL Server 2005 database using integrated security and the report previews fine in visual studio.

不幸的是,当我创建报告数据源时并选择新创建的报告,当我点击编辑报告时,我得到"报告源尚未配置" (显然我之前选择了这个)

Unfortunately, when I create a report data source and select the newly created report, when I click on edit report I get "report source has not yet been configured" (obviously I have selected this previously)

此外,当我现在将数据源与报表查看器一起使用时,查看器最初说请设置报表源ID然后继续说报告加载失败,我永远无法超越这一点(这显然是由于上面的数据源有问题)

Also, when I'm now use the data source with a report viewer, the viewer initially says please set the report source ID and then goes on to say report load failed and I can never get past this point (this is obviously due to something wrong with the data source up above)

这不是部署问题,因为我还没有超出设计师的范围: - )

This is not a deployment issue, as I have not got out of the designer yet :-)

希望你能提供帮助,

问候,

Mathie

推荐答案

我遇到了与Visual Studio 2008相同的问题。确保CrystalReportSource标记中的FileName值指向有效文件相对于页面。最初,当我添加控件并通过智能标记设置值时,我的标记最终看起来像:


I was having the same problem with Visual Studio 2008.  Make sure that the FileName value in the CrystalReportSource tag points to a valid file relative to the page.  Initially, when I added the controls and set the values through the smart tags, my tag ended up looking like:











< CR:CrystalReportSource ID = " CrystalReportSource1" runat = " server" > ;
< 报告 FileName = " ; Reports\Test2.rpt" > < / 报告 >
< / CR:CrystalReportSource >
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">  
    <Report FileName="Reports\Test2.rpt"></Report> 
</CR:CrystalReportSource> 


这篇关于无法使用报表查看器在设计器中编辑报表/预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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