渲染报告时出现问题 [英] Problem rendering a report

查看:107
本文介绍了渲染报告时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在渲染本地报道时遇到了困难。我似乎无法得到正确的代码。 Visual Studio 2008 VB.Net,SQL Server 2005.
在click事件中,我有以下代码:
Me.rvApptRpt.LocalReport.ReportEmbeddedResource =" ReportingServicesLocal.Appointments.rdlc"
Me.rvApptRpt.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource(" EmdIntData_AppointmentHistory",Me.EmdIntData.Tables(2)))
Me.rvApptRpt.BringToFront()
我.rvApptRpt.Visible = True
Me.rvApptRpt.Refresh()
在应用程序执行后,报告为空,除了一条消息说明:"尚未指定报告定义的来源"。源代码是否未在我的代码中定义?
如果没有,我到底需要做什么。
感谢您的帮助。
罗伊

Hi All,
I am having a difficult time rendering a localreport. I cannot seem to get the code correct. Visual Studio 2008 VB.Net, SQL Server 2005.
In the click event, I have the following code:
        Me.rvApptRpt.LocalReport.ReportEmbeddedResource = "ReportingServicesLocal.Appointments.rdlc"
        Me.rvApptRpt.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("EmdIntData_AppointmentHistory", Me.EmdIntData.Tables(2)))
        Me.rvApptRpt.BringToFront()
        Me.rvApptRpt.Visible = True
        Me.rvApptRpt.Refresh()
After the app executes, the report is blank except for a message stating: "The source of the report definition has not been specified". Is the source not defined in my code?
If not, what exactly do I need to do.
Your help is appreciated.
Roy

推荐答案

我有同样的问题。
你找到了解决办法吗?
I have the same issue.
Did you find a solution?


这篇关于渲染报告时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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